OLD | NEW |
1 /* | 1 /* |
2 * jpegint.h | 2 * jpegint.h |
3 * | 3 * |
4 * Copyright (C) 1991-1997, Thomas G. Lane. | 4 * Copyright (C) 1991-1997, Thomas G. Lane. |
5 * This file is part of the Independent JPEG Group's software. | 5 * This file is part of the Independent JPEG Group's software. |
6 * For conditions of distribution and use, see the accompanying README file. | 6 * For conditions of distribution and use, see the accompanying README file. |
7 * | 7 * |
8 * This file provides common declarations for the various JPEG modules. | 8 * This file provides common declarations for the various JPEG modules. |
9 * These declarations are considered internal to the JPEG library; most | 9 * These declarations are considered internal to the JPEG library; most |
10 * applications using the library shouldn't need to include this file. | 10 * applications using the library shouldn't need to include this file. |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 }; | 88 }; |
89 | 89 |
90 /* Downsampling */ | 90 /* Downsampling */ |
91 struct jpeg_downsampler { | 91 struct jpeg_downsampler { |
92 JMETHOD(void, start_pass, (j_compress_ptr cinfo)); | 92 JMETHOD(void, start_pass, (j_compress_ptr cinfo)); |
93 JMETHOD(void, downsample, (j_compress_ptr cinfo, | 93 JMETHOD(void, downsample, (j_compress_ptr cinfo, |
94 JSAMPIMAGE input_buf, JDIMENSION in_row_index, | 94 JSAMPIMAGE input_buf, JDIMENSION in_row_index, |
95 JSAMPIMAGE output_buf, | 95 JSAMPIMAGE output_buf, |
96 JDIMENSION out_row_group_index)); | 96 JDIMENSION out_row_group_index)); |
97 | 97 |
98 boolean need_context_rows;» /* TRUE if need rows above & below */ | 98 boolean need_context_rows;» /* true if need rows above & below */ |
99 }; | 99 }; |
100 | 100 |
101 /* Forward DCT (also controls coefficient quantization) */ | 101 /* Forward DCT (also controls coefficient quantization) */ |
102 struct jpeg_forward_dct { | 102 struct jpeg_forward_dct { |
103 JMETHOD(void, start_pass, (j_compress_ptr cinfo)); | 103 JMETHOD(void, start_pass, (j_compress_ptr cinfo)); |
104 /* perhaps this should be an array??? */ | 104 /* perhaps this should be an array??? */ |
105 JMETHOD(void, forward_DCT, (j_compress_ptr cinfo, | 105 JMETHOD(void, forward_DCT, (j_compress_ptr cinfo, |
106 jpeg_component_info * compptr, | 106 jpeg_component_info * compptr, |
107 JSAMPARRAY sample_data, JBLOCKROW coef_blocks, | 107 JSAMPARRAY sample_data, JBLOCKROW coef_blocks, |
108 JDIMENSION start_row, JDIMENSION start_col, | 108 JDIMENSION start_row, JDIMENSION start_col, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 }; | 206 }; |
207 | 207 |
208 /* Entropy decoding */ | 208 /* Entropy decoding */ |
209 struct jpeg_entropy_decoder { | 209 struct jpeg_entropy_decoder { |
210 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); | 210 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); |
211 JMETHOD(boolean, decode_mcu, (j_decompress_ptr cinfo, | 211 JMETHOD(boolean, decode_mcu, (j_decompress_ptr cinfo, |
212 JBLOCKROW *MCU_data)); | 212 JBLOCKROW *MCU_data)); |
213 | 213 |
214 /* This is here to share code between baseline and progressive decoders; */ | 214 /* This is here to share code between baseline and progressive decoders; */ |
215 /* other modules probably should not use it */ | 215 /* other modules probably should not use it */ |
216 boolean insufficient_data;» /* set TRUE after emitting warning */ | 216 boolean insufficient_data;» /* set true after emitting warning */ |
217 }; | 217 }; |
218 | 218 |
219 /* Inverse DCT (also performs dequantization) */ | 219 /* Inverse DCT (also performs dequantization) */ |
220 typedef JMETHOD(void, inverse_DCT_method_ptr, | 220 typedef JMETHOD(void, inverse_DCT_method_ptr, |
221 (j_decompress_ptr cinfo, jpeg_component_info * compptr, | 221 (j_decompress_ptr cinfo, jpeg_component_info * compptr, |
222 JCOEFPTR coef_block, | 222 JCOEFPTR coef_block, |
223 JSAMPARRAY output_buf, JDIMENSION output_col)); | 223 JSAMPARRAY output_buf, JDIMENSION output_col)); |
224 | 224 |
225 struct jpeg_inverse_dct { | 225 struct jpeg_inverse_dct { |
226 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); | 226 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); |
227 /* It is useful to allow each component to have a separate IDCT method. */ | 227 /* It is useful to allow each component to have a separate IDCT method. */ |
228 inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS]; | 228 inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS]; |
229 }; | 229 }; |
230 | 230 |
231 /* Upsampling (note that upsampler must also call color converter) */ | 231 /* Upsampling (note that upsampler must also call color converter) */ |
232 struct jpeg_upsampler { | 232 struct jpeg_upsampler { |
233 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); | 233 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); |
234 JMETHOD(void, upsample, (j_decompress_ptr cinfo, | 234 JMETHOD(void, upsample, (j_decompress_ptr cinfo, |
235 JSAMPIMAGE input_buf, | 235 JSAMPIMAGE input_buf, |
236 JDIMENSION *in_row_group_ctr, | 236 JDIMENSION *in_row_group_ctr, |
237 JDIMENSION in_row_groups_avail, | 237 JDIMENSION in_row_groups_avail, |
238 JSAMPARRAY output_buf, | 238 JSAMPARRAY output_buf, |
239 JDIMENSION *out_row_ctr, | 239 JDIMENSION *out_row_ctr, |
240 JDIMENSION out_rows_avail)); | 240 JDIMENSION out_rows_avail)); |
241 | 241 |
242 boolean need_context_rows;» /* TRUE if need rows above & below */ | 242 boolean need_context_rows;» /* true if need rows above & below */ |
243 }; | 243 }; |
244 | 244 |
245 /* Colorspace conversion */ | 245 /* Colorspace conversion */ |
246 struct jpeg_color_deconverter { | 246 struct jpeg_color_deconverter { |
247 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); | 247 JMETHOD(void, start_pass, (j_decompress_ptr cinfo)); |
248 JMETHOD(void, color_convert, (j_decompress_ptr cinfo, | 248 JMETHOD(void, color_convert, (j_decompress_ptr cinfo, |
249 JSAMPIMAGE input_buf, JDIMENSION input_row, | 249 JSAMPIMAGE input_buf, JDIMENSION input_row, |
250 JSAMPARRAY output_buf, int num_rows)); | 250 JSAMPARRAY output_buf, int num_rows)); |
251 }; | 251 }; |
252 | 252 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */ | 383 extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */ |
384 | 384 |
385 /* Suppress undefined-structure complaints if necessary. */ | 385 /* Suppress undefined-structure complaints if necessary. */ |
386 | 386 |
387 #ifdef INCOMPLETE_TYPES_BROKEN | 387 #ifdef INCOMPLETE_TYPES_BROKEN |
388 #ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */ | 388 #ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */ |
389 struct jvirt_sarray_control { long dummy; }; | 389 struct jvirt_sarray_control { long dummy; }; |
390 struct jvirt_barray_control { long dummy; }; | 390 struct jvirt_barray_control { long dummy; }; |
391 #endif | 391 #endif |
392 #endif /* INCOMPLETE_TYPES_BROKEN */ | 392 #endif /* INCOMPLETE_TYPES_BROKEN */ |
OLD | NEW |