4 * Declarations of functions in the platform independent public JPEGTCL API.
12 * WARNING: The contents of this file is automatically generated by the
13 * genStubs.tcl script. Any modifications to the function declarations
14 * below should be made in the jpegtcl.decls script.
19 /* undef Tcl macros that conflict with libjpeg stuff (sigh) */
22 #include <jpegtclDeclsMask.h>
23 #include <../jpeglib.h>
24 #include <../jerror.h>
25 #include <jpegtclDeclsUnmask.h>
28 * And recreate the definition of "tcl.h", we need it below.
33 # define EXTERN extern "C" TCL_STORAGE_CLASS
35 # define EXTERN extern TCL_STORAGE_CLASS
39 /* !BEGIN!: Do not edit below this line. */
42 * Exported function declarations:
46 EXTERN
struct jpeg_error_mgr
* jpeg_std_error
_ANSI_ARGS_((
47 struct jpeg_error_mgr
* err
));
49 EXTERN
void jpeg_CreateCompress
_ANSI_ARGS_((
50 j_compress_ptr cinfo
, int version
,
53 EXTERN
void jpeg_CreateDecompress
_ANSI_ARGS_((
54 j_decompress_ptr cinfo
, int version
,
57 EXTERN
void jpeg_destroy_compress
_ANSI_ARGS_((
58 j_compress_ptr cinfo
));
60 EXTERN
void jpeg_destroy_decompress
_ANSI_ARGS_((
61 j_decompress_ptr cinfo
));
63 EXTERN
void jpeg_stdio_dest
_ANSI_ARGS_((j_compress_ptr cinfo
,
66 EXTERN
void jpeg_stdio_src
_ANSI_ARGS_((j_decompress_ptr cinfo
,
69 EXTERN
void jpeg_set_defaults
_ANSI_ARGS_((j_compress_ptr cinfo
));
71 EXTERN
void jpeg_set_colorspace
_ANSI_ARGS_((
73 J_COLOR_SPACE colorspace
));
75 EXTERN
void jpeg_default_colorspace
_ANSI_ARGS_((
76 j_compress_ptr cinfo
));
78 EXTERN
void jpeg_set_quality
_ANSI_ARGS_((j_compress_ptr cinfo
,
79 int quality
, boolean force_baseline
));
81 EXTERN
void jpeg_set_linear_quality
_ANSI_ARGS_((
82 j_compress_ptr cinfo
, int scale_factor
,
83 boolean force_baseline
));
85 EXTERN
void jpeg_add_quant_table
_ANSI_ARGS_((
86 j_compress_ptr cinfo
, int which_tbl
,
87 const unsigned int * basic_table
,
88 int scale_factor
, boolean force_baseline
));
90 EXTERN
int jpeg_quality_scaling
_ANSI_ARGS_((int quality
));
92 EXTERN
void jpeg_simple_progression
_ANSI_ARGS_((
93 j_compress_ptr cinfo
));
95 EXTERN
void jpeg_suppress_tables
_ANSI_ARGS_((
96 j_compress_ptr cinfo
, boolean suppress
));
98 EXTERN JQUANT_TBL
* jpeg_alloc_quant_table
_ANSI_ARGS_((
101 EXTERN JHUFF_TBL
* jpeg_alloc_huff_table
_ANSI_ARGS_((
102 j_common_ptr cinfo
));
104 EXTERN
void jpeg_start_compress
_ANSI_ARGS_((
105 j_compress_ptr cinfo
,
106 boolean write_all_tables
));
108 EXTERN JDIMENSION jpeg_write_scanlines
_ANSI_ARGS_((
109 j_compress_ptr cinfo
, JSAMPARRAY scanlines
,
110 JDIMENSION num_lines
));
112 EXTERN
void jpeg_finish_compress
_ANSI_ARGS_((
113 j_compress_ptr cinfo
));
115 EXTERN JDIMENSION jpeg_write_raw_data
_ANSI_ARGS_((
116 j_compress_ptr cinfo
, JSAMPIMAGE data
,
117 JDIMENSION num_lines
));
119 EXTERN
void jpeg_write_marker
_ANSI_ARGS_((j_compress_ptr cinfo
,
120 int marker
, const JOCTET
* dataptr
,
121 unsigned int datalen
));
123 EXTERN
void jpeg_write_m_header
_ANSI_ARGS_((
124 j_compress_ptr cinfo
, int marker
,
125 unsigned int datalen
));
127 EXTERN
void jpeg_write_m_byte
_ANSI_ARGS_((j_compress_ptr cinfo
,
130 EXTERN
void jpeg_write_tables
_ANSI_ARGS_((j_compress_ptr cinfo
));
132 EXTERN
int jpeg_read_header
_ANSI_ARGS_((j_decompress_ptr cinfo
,
133 boolean require_image
));
135 EXTERN boolean jpeg_start_decompress
_ANSI_ARGS_((
136 j_decompress_ptr cinfo
));
138 EXTERN JDIMENSION jpeg_read_scanlines
_ANSI_ARGS_((
139 j_decompress_ptr cinfo
, JSAMPARRAY scanlines
,
140 JDIMENSION max_lines
));
142 EXTERN boolean jpeg_finish_decompress
_ANSI_ARGS_((
143 j_decompress_ptr cinfo
));
145 EXTERN JDIMENSION jpeg_read_raw_data
_ANSI_ARGS_((
146 j_decompress_ptr cinfo
, JSAMPIMAGE data
,
147 JDIMENSION max_lines
));
149 EXTERN boolean jpeg_has_multiple_scans
_ANSI_ARGS_((
150 j_decompress_ptr cinfo
));
152 EXTERN boolean jpeg_start_output
_ANSI_ARGS_((
153 j_decompress_ptr cinfo
, int scan_number
));
155 EXTERN boolean jpeg_finish_output
_ANSI_ARGS_((
156 j_decompress_ptr cinfo
));
158 EXTERN boolean jpeg_input_complete
_ANSI_ARGS_((
159 j_decompress_ptr cinfo
));
161 EXTERN
void jpeg_new_colormap
_ANSI_ARGS_((
162 j_decompress_ptr cinfo
));
164 EXTERN
int jpeg_consume_input
_ANSI_ARGS_((
165 j_decompress_ptr cinfo
));
167 EXTERN
void jpeg_calc_output_dimensions
_ANSI_ARGS_((
168 j_decompress_ptr cinfo
));
170 EXTERN
void jpeg_save_markers
_ANSI_ARGS_((
171 j_decompress_ptr cinfo
, int marker_code
,
172 unsigned int length_limit
));
174 EXTERN
void jpeg_set_marker_processor
_ANSI_ARGS_((
175 j_decompress_ptr cinfo
, int marker_code
,
176 jpeg_marker_parser_method routine
));
178 EXTERN jvirt_barray_ptr
* jpeg_read_coefficients
_ANSI_ARGS_((
179 j_decompress_ptr cinfo
));
181 EXTERN
void jpeg_write_coefficients
_ANSI_ARGS_((
182 j_compress_ptr cinfo
,
183 jvirt_barray_ptr
* coef_arrays
));
185 EXTERN
void jpeg_copy_critical_parameters
_ANSI_ARGS_((
186 j_decompress_ptr srcinfo
,
187 j_compress_ptr dstinfo
));
189 EXTERN
void jpeg_abort_compress
_ANSI_ARGS_((
190 j_compress_ptr cinfo
));
192 EXTERN
void jpeg_abort_decompress
_ANSI_ARGS_((
193 j_decompress_ptr cinfo
));
195 EXTERN
void jpeg_abort
_ANSI_ARGS_((j_common_ptr cinfo
));
197 EXTERN
void jpeg_destroy
_ANSI_ARGS_((j_common_ptr cinfo
));
199 EXTERN boolean jpeg_resync_to_restart
_ANSI_ARGS_((
200 j_decompress_ptr cinfo
, int desired
));
202 typedef struct JpegtclStubs
{
204 struct JpegtclStubHooks
*hooks
;
206 struct jpeg_error_mgr
* (*jpeg_std_error
) _ANSI_ARGS_((struct jpeg_error_mgr
* err
)); /* 0 */
207 void (*jpeg_CreateCompress
) _ANSI_ARGS_((j_compress_ptr cinfo
, int version
, size_t structsize
)); /* 1 */
208 void (*jpeg_CreateDecompress
) _ANSI_ARGS_((j_decompress_ptr cinfo
, int version
, size_t structsize
)); /* 2 */
209 void (*jpeg_destroy_compress
) _ANSI_ARGS_((j_compress_ptr cinfo
)); /* 3 */
210 void (*jpeg_destroy_decompress
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 4 */
211 void (*jpeg_stdio_dest
) _ANSI_ARGS_((j_compress_ptr cinfo
, FILE * outfile
)); /* 5 */
212 void (*jpeg_stdio_src
) _ANSI_ARGS_((j_decompress_ptr cinfo
, FILE * infile
)); /* 6 */
213 void (*jpeg_set_defaults
) _ANSI_ARGS_((j_compress_ptr cinfo
)); /* 7 */
214 void (*jpeg_set_colorspace
) _ANSI_ARGS_((j_compress_ptr cinfo
, J_COLOR_SPACE colorspace
)); /* 8 */
215 void (*jpeg_default_colorspace
) _ANSI_ARGS_((j_compress_ptr cinfo
)); /* 9 */
216 void (*jpeg_set_quality
) _ANSI_ARGS_((j_compress_ptr cinfo
, int quality
, boolean force_baseline
)); /* 10 */
217 void (*jpeg_set_linear_quality
) _ANSI_ARGS_((j_compress_ptr cinfo
, int scale_factor
, boolean force_baseline
)); /* 11 */
218 void (*jpeg_add_quant_table
) _ANSI_ARGS_((j_compress_ptr cinfo
, int which_tbl
, const unsigned int * basic_table
, int scale_factor
, boolean force_baseline
)); /* 12 */
219 int (*jpeg_quality_scaling
) _ANSI_ARGS_((int quality
)); /* 13 */
220 void (*jpeg_simple_progression
) _ANSI_ARGS_((j_compress_ptr cinfo
)); /* 14 */
221 void (*jpeg_suppress_tables
) _ANSI_ARGS_((j_compress_ptr cinfo
, boolean suppress
)); /* 15 */
222 JQUANT_TBL
* (*jpeg_alloc_quant_table
) _ANSI_ARGS_((j_common_ptr cinfo
)); /* 16 */
223 JHUFF_TBL
* (*jpeg_alloc_huff_table
) _ANSI_ARGS_((j_common_ptr cinfo
)); /* 17 */
224 void (*jpeg_start_compress
) _ANSI_ARGS_((j_compress_ptr cinfo
, boolean write_all_tables
)); /* 18 */
225 JDIMENSION (*jpeg_write_scanlines
) _ANSI_ARGS_((j_compress_ptr cinfo
, JSAMPARRAY scanlines
, JDIMENSION num_lines
)); /* 19 */
226 void (*jpeg_finish_compress
) _ANSI_ARGS_((j_compress_ptr cinfo
)); /* 20 */
227 JDIMENSION (*jpeg_write_raw_data
) _ANSI_ARGS_((j_compress_ptr cinfo
, JSAMPIMAGE data
, JDIMENSION num_lines
)); /* 21 */
228 void (*jpeg_write_marker
) _ANSI_ARGS_((j_compress_ptr cinfo
, int marker
, const JOCTET
* dataptr
, unsigned int datalen
)); /* 22 */
229 void (*jpeg_write_m_header
) _ANSI_ARGS_((j_compress_ptr cinfo
, int marker
, unsigned int datalen
)); /* 23 */
230 void (*jpeg_write_m_byte
) _ANSI_ARGS_((j_compress_ptr cinfo
, int val
)); /* 24 */
231 void (*jpeg_write_tables
) _ANSI_ARGS_((j_compress_ptr cinfo
)); /* 25 */
232 int (*jpeg_read_header
) _ANSI_ARGS_((j_decompress_ptr cinfo
, boolean require_image
)); /* 26 */
233 boolean (*jpeg_start_decompress
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 27 */
234 JDIMENSION (*jpeg_read_scanlines
) _ANSI_ARGS_((j_decompress_ptr cinfo
, JSAMPARRAY scanlines
, JDIMENSION max_lines
)); /* 28 */
235 boolean (*jpeg_finish_decompress
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 29 */
236 JDIMENSION (*jpeg_read_raw_data
) _ANSI_ARGS_((j_decompress_ptr cinfo
, JSAMPIMAGE data
, JDIMENSION max_lines
)); /* 30 */
237 boolean (*jpeg_has_multiple_scans
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 31 */
238 boolean (*jpeg_start_output
) _ANSI_ARGS_((j_decompress_ptr cinfo
, int scan_number
)); /* 32 */
239 boolean (*jpeg_finish_output
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 33 */
240 boolean (*jpeg_input_complete
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 34 */
241 void (*jpeg_new_colormap
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 35 */
242 int (*jpeg_consume_input
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 36 */
243 void (*jpeg_calc_output_dimensions
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 37 */
244 void (*jpeg_save_markers
) _ANSI_ARGS_((j_decompress_ptr cinfo
, int marker_code
, unsigned int length_limit
)); /* 38 */
245 void (*jpeg_set_marker_processor
) _ANSI_ARGS_((j_decompress_ptr cinfo
, int marker_code
, jpeg_marker_parser_method routine
)); /* 39 */
246 jvirt_barray_ptr
* (*jpeg_read_coefficients
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 40 */
247 void (*jpeg_write_coefficients
) _ANSI_ARGS_((j_compress_ptr cinfo
, jvirt_barray_ptr
* coef_arrays
)); /* 41 */
248 void (*jpeg_copy_critical_parameters
) _ANSI_ARGS_((j_decompress_ptr srcinfo
, j_compress_ptr dstinfo
)); /* 42 */
249 void (*jpeg_abort_compress
) _ANSI_ARGS_((j_compress_ptr cinfo
)); /* 43 */
250 void (*jpeg_abort_decompress
) _ANSI_ARGS_((j_decompress_ptr cinfo
)); /* 44 */
251 void (*jpeg_abort
) _ANSI_ARGS_((j_common_ptr cinfo
)); /* 45 */
252 void (*jpeg_destroy
) _ANSI_ARGS_((j_common_ptr cinfo
)); /* 46 */
253 boolean (*jpeg_resync_to_restart
) _ANSI_ARGS_((j_decompress_ptr cinfo
, int desired
)); /* 47 */
259 extern JpegtclStubs
*jpegtclStubsPtr
;
264 #if defined(USE_JPEGTCL_STUBS) && !defined(USE_JPEGTCL_STUB_PROCS)
267 * Inline function declarations:
270 #ifndef jpeg_std_error
271 #define jpeg_std_error \
272 (jpegtclStubsPtr->jpeg_std_error) /* 0 */
274 #ifndef jpeg_CreateCompress
275 #define jpeg_CreateCompress \
276 (jpegtclStubsPtr->jpeg_CreateCompress) /* 1 */
278 #ifndef jpeg_CreateDecompress
279 #define jpeg_CreateDecompress \
280 (jpegtclStubsPtr->jpeg_CreateDecompress) /* 2 */
282 #ifndef jpeg_destroy_compress
283 #define jpeg_destroy_compress \
284 (jpegtclStubsPtr->jpeg_destroy_compress) /* 3 */
286 #ifndef jpeg_destroy_decompress
287 #define jpeg_destroy_decompress \
288 (jpegtclStubsPtr->jpeg_destroy_decompress) /* 4 */
290 #ifndef jpeg_stdio_dest
291 #define jpeg_stdio_dest \
292 (jpegtclStubsPtr->jpeg_stdio_dest) /* 5 */
294 #ifndef jpeg_stdio_src
295 #define jpeg_stdio_src \
296 (jpegtclStubsPtr->jpeg_stdio_src) /* 6 */
298 #ifndef jpeg_set_defaults
299 #define jpeg_set_defaults \
300 (jpegtclStubsPtr->jpeg_set_defaults) /* 7 */
302 #ifndef jpeg_set_colorspace
303 #define jpeg_set_colorspace \
304 (jpegtclStubsPtr->jpeg_set_colorspace) /* 8 */
306 #ifndef jpeg_default_colorspace
307 #define jpeg_default_colorspace \
308 (jpegtclStubsPtr->jpeg_default_colorspace) /* 9 */
310 #ifndef jpeg_set_quality
311 #define jpeg_set_quality \
312 (jpegtclStubsPtr->jpeg_set_quality) /* 10 */
314 #ifndef jpeg_set_linear_quality
315 #define jpeg_set_linear_quality \
316 (jpegtclStubsPtr->jpeg_set_linear_quality) /* 11 */
318 #ifndef jpeg_add_quant_table
319 #define jpeg_add_quant_table \
320 (jpegtclStubsPtr->jpeg_add_quant_table) /* 12 */
322 #ifndef jpeg_quality_scaling
323 #define jpeg_quality_scaling \
324 (jpegtclStubsPtr->jpeg_quality_scaling) /* 13 */
326 #ifndef jpeg_simple_progression
327 #define jpeg_simple_progression \
328 (jpegtclStubsPtr->jpeg_simple_progression) /* 14 */
330 #ifndef jpeg_suppress_tables
331 #define jpeg_suppress_tables \
332 (jpegtclStubsPtr->jpeg_suppress_tables) /* 15 */
334 #ifndef jpeg_alloc_quant_table
335 #define jpeg_alloc_quant_table \
336 (jpegtclStubsPtr->jpeg_alloc_quant_table) /* 16 */
338 #ifndef jpeg_alloc_huff_table
339 #define jpeg_alloc_huff_table \
340 (jpegtclStubsPtr->jpeg_alloc_huff_table) /* 17 */
342 #ifndef jpeg_start_compress
343 #define jpeg_start_compress \
344 (jpegtclStubsPtr->jpeg_start_compress) /* 18 */
346 #ifndef jpeg_write_scanlines
347 #define jpeg_write_scanlines \
348 (jpegtclStubsPtr->jpeg_write_scanlines) /* 19 */
350 #ifndef jpeg_finish_compress
351 #define jpeg_finish_compress \
352 (jpegtclStubsPtr->jpeg_finish_compress) /* 20 */
354 #ifndef jpeg_write_raw_data
355 #define jpeg_write_raw_data \
356 (jpegtclStubsPtr->jpeg_write_raw_data) /* 21 */
358 #ifndef jpeg_write_marker
359 #define jpeg_write_marker \
360 (jpegtclStubsPtr->jpeg_write_marker) /* 22 */
362 #ifndef jpeg_write_m_header
363 #define jpeg_write_m_header \
364 (jpegtclStubsPtr->jpeg_write_m_header) /* 23 */
366 #ifndef jpeg_write_m_byte
367 #define jpeg_write_m_byte \
368 (jpegtclStubsPtr->jpeg_write_m_byte) /* 24 */
370 #ifndef jpeg_write_tables
371 #define jpeg_write_tables \
372 (jpegtclStubsPtr->jpeg_write_tables) /* 25 */
374 #ifndef jpeg_read_header
375 #define jpeg_read_header \
376 (jpegtclStubsPtr->jpeg_read_header) /* 26 */
378 #ifndef jpeg_start_decompress
379 #define jpeg_start_decompress \
380 (jpegtclStubsPtr->jpeg_start_decompress) /* 27 */
382 #ifndef jpeg_read_scanlines
383 #define jpeg_read_scanlines \
384 (jpegtclStubsPtr->jpeg_read_scanlines) /* 28 */
386 #ifndef jpeg_finish_decompress
387 #define jpeg_finish_decompress \
388 (jpegtclStubsPtr->jpeg_finish_decompress) /* 29 */
390 #ifndef jpeg_read_raw_data
391 #define jpeg_read_raw_data \
392 (jpegtclStubsPtr->jpeg_read_raw_data) /* 30 */
394 #ifndef jpeg_has_multiple_scans
395 #define jpeg_has_multiple_scans \
396 (jpegtclStubsPtr->jpeg_has_multiple_scans) /* 31 */
398 #ifndef jpeg_start_output
399 #define jpeg_start_output \
400 (jpegtclStubsPtr->jpeg_start_output) /* 32 */
402 #ifndef jpeg_finish_output
403 #define jpeg_finish_output \
404 (jpegtclStubsPtr->jpeg_finish_output) /* 33 */
406 #ifndef jpeg_input_complete
407 #define jpeg_input_complete \
408 (jpegtclStubsPtr->jpeg_input_complete) /* 34 */
410 #ifndef jpeg_new_colormap
411 #define jpeg_new_colormap \
412 (jpegtclStubsPtr->jpeg_new_colormap) /* 35 */
414 #ifndef jpeg_consume_input
415 #define jpeg_consume_input \
416 (jpegtclStubsPtr->jpeg_consume_input) /* 36 */
418 #ifndef jpeg_calc_output_dimensions
419 #define jpeg_calc_output_dimensions \
420 (jpegtclStubsPtr->jpeg_calc_output_dimensions) /* 37 */
422 #ifndef jpeg_save_markers
423 #define jpeg_save_markers \
424 (jpegtclStubsPtr->jpeg_save_markers) /* 38 */
426 #ifndef jpeg_set_marker_processor
427 #define jpeg_set_marker_processor \
428 (jpegtclStubsPtr->jpeg_set_marker_processor) /* 39 */
430 #ifndef jpeg_read_coefficients
431 #define jpeg_read_coefficients \
432 (jpegtclStubsPtr->jpeg_read_coefficients) /* 40 */
434 #ifndef jpeg_write_coefficients
435 #define jpeg_write_coefficients \
436 (jpegtclStubsPtr->jpeg_write_coefficients) /* 41 */
438 #ifndef jpeg_copy_critical_parameters
439 #define jpeg_copy_critical_parameters \
440 (jpegtclStubsPtr->jpeg_copy_critical_parameters) /* 42 */
442 #ifndef jpeg_abort_compress
443 #define jpeg_abort_compress \
444 (jpegtclStubsPtr->jpeg_abort_compress) /* 43 */
446 #ifndef jpeg_abort_decompress
447 #define jpeg_abort_decompress \
448 (jpegtclStubsPtr->jpeg_abort_decompress) /* 44 */
452 (jpegtclStubsPtr->jpeg_abort) /* 45 */
455 #define jpeg_destroy \
456 (jpegtclStubsPtr->jpeg_destroy) /* 46 */
458 #ifndef jpeg_resync_to_restart
459 #define jpeg_resync_to_restart \
460 (jpegtclStubsPtr->jpeg_resync_to_restart) /* 47 */
463 #endif /* defined(USE_JPEGTCL_STUBS) && !defined(USE_JPEGTCL_STUB_PROCS) */
465 /* !END!: Do not edit above this line. */
467 #endif /* _JPEGTCLDECLS */