ReactOS 0.4.15-dev-7788-g1ad9096
jpegint.h
Go to the documentation of this file.
1/*
2 * jpegint.h
3 *
4 * Copyright (C) 1991-1997, Thomas G. Lane.
5 * Modified 1997-2019 by Guido Vollbeding.
6 * This file is part of the Independent JPEG Group's software.
7 * For conditions of distribution and use, see the accompanying README file.
8 *
9 * This file provides common declarations for the various JPEG modules.
10 * These declarations are considered internal to the JPEG library; most
11 * applications using the library shouldn't need to include this file.
12 */
13
14
15/* Declarations for both compression & decompression */
16
17typedef enum { /* Operating modes for buffer controllers */
18 JBUF_PASS_THRU, /* Plain stripwise operation */
19 /* Remaining modes require a full-image buffer to have been created */
20 JBUF_SAVE_SOURCE, /* Run source subobject only, save output */
21 JBUF_CRANK_DEST, /* Run dest subobject only, using saved data */
22 JBUF_SAVE_AND_PASS /* Run both subobjects, save output */
24
25/* Values of global_state field (jdapi.c has some dependencies on ordering!) */
26#define CSTATE_START 100 /* after create_compress */
27#define CSTATE_SCANNING 101 /* start_compress done, write_scanlines OK */
28#define CSTATE_RAW_OK 102 /* start_compress done, write_raw_data OK */
29#define CSTATE_WRCOEFS 103 /* jpeg_write_coefficients done */
30#define DSTATE_START 200 /* after create_decompress */
31#define DSTATE_INHEADER 201 /* reading header markers, no SOS yet */
32#define DSTATE_READY 202 /* found SOS, ready for start_decompress */
33#define DSTATE_PRELOAD 203 /* reading multiscan file in start_decompress*/
34#define DSTATE_PRESCAN 204 /* performing dummy pass for 2-pass quant */
35#define DSTATE_SCANNING 205 /* start_decompress done, read_scanlines OK */
36#define DSTATE_RAW_OK 206 /* start_decompress done, read_raw_data OK */
37#define DSTATE_BUFIMAGE 207 /* expecting jpeg_start_output */
38#define DSTATE_BUFPOST 208 /* looking for SOS/EOI in jpeg_finish_output */
39#define DSTATE_RDCOEFS 209 /* reading file in jpeg_read_coefficients */
40#define DSTATE_STOPPING 210 /* looking for EOI in jpeg_finish_decompress */
41
42
43/* Declarations for compression modules */
44
45/* Master control module */
50
51 /* State variables made visible to other modules */
52 boolean call_pass_startup; /* True if pass_startup must be called */
53 boolean is_last_pass; /* True during last pass */
54};
55
56/* Main buffer control (downsampled-data buffer) */
58 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
60 JSAMPARRAY input_buf, JDIMENSION *in_row_ctr,
61 JDIMENSION in_rows_avail));
62};
63
64/* Compression preprocessing (downsampling input buffer control) */
66 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
68 JSAMPARRAY input_buf,
69 JDIMENSION *in_row_ctr,
70 JDIMENSION in_rows_avail,
72 JDIMENSION *out_row_group_ctr,
73 JDIMENSION out_row_groups_avail));
74};
75
76/* Coefficient buffer control */
78 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
80 JSAMPIMAGE input_buf));
81};
82
83/* Colorspace conversion */
86 JMETHOD(void, color_convert, (j_compress_ptr cinfo,
89};
90
91/* Downsampling */
94 JMETHOD(void, downsample, (j_compress_ptr cinfo,
95 JSAMPIMAGE input_buf, JDIMENSION in_row_index,
97 JDIMENSION out_row_group_index));
98
99 boolean need_context_rows; /* TRUE if need rows above & below */
100};
101
102/* Forward DCT (also controls coefficient quantization) */
103typedef JMETHOD(void, forward_DCT_ptr,
105 JSAMPARRAY sample_data, JBLOCKROW coef_blocks,
108
111 /* It is useful to allow each component to have a separate FDCT method. */
112 forward_DCT_ptr forward_DCT[MAX_COMPONENTS];
113};
114
115/* Entropy encoding */
117 JMETHOD(void, start_pass, (j_compress_ptr cinfo, boolean gather_statistics));
118 JMETHOD(boolean, encode_mcu, (j_compress_ptr cinfo, JBLOCKROW *MCU_data));
120};
121
122/* Marker writing */
129 /* These routines are exported to allow insertion of extra markers */
130 /* Probably only COM and APPn markers should be written this way */
132 unsigned int datalen));
134};
135
136
137/* Declarations for decompression modules */
138
139/* Master control module */
143
144 /* State variables made visible to other modules */
145 boolean is_dummy_pass; /* True during 1st pass for 2-pass quant */
146};
147
148/* Input control module */
150 JMETHOD(int, consume_input, (j_decompress_ptr cinfo));
154
155 /* State variables made visible to other modules */
156 boolean has_multiple_scans; /* True if file has multiple scans */
157 boolean eoi_reached; /* True when EOI has been consumed */
158};
159
160/* Main buffer control (downsampled-data buffer) */
162 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, J_BUF_MODE pass_mode));
164 JSAMPARRAY output_buf, JDIMENSION *out_row_ctr,
165 JDIMENSION out_rows_avail));
166};
167
168/* Coefficient buffer control */
171 JMETHOD(int, consume_data, (j_decompress_ptr cinfo));
173 JMETHOD(int, decompress_data, (j_decompress_ptr cinfo,
175 /* Pointer to array of coefficient virtual arrays, or NULL if none */
177};
178
179/* Decompression postprocessing (color quantization buffer control) */
181 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, J_BUF_MODE pass_mode));
182 JMETHOD(void, post_process_data, (j_decompress_ptr cinfo,
183 JSAMPIMAGE input_buf,
184 JDIMENSION *in_row_group_ctr,
185 JDIMENSION in_row_groups_avail,
187 JDIMENSION *out_row_ctr,
188 JDIMENSION out_rows_avail));
189};
190
191/* Marker reading & parsing */
194 /* Read markers until SOS or EOI.
195 * Returns same codes as are defined for jpeg_consume_input:
196 * JPEG_SUSPENDED, JPEG_REACHED_SOS, or JPEG_REACHED_EOI.
197 */
199 /* Read a restart marker --- exported for use by entropy decoder only */
200 jpeg_marker_parser_method read_restart_marker;
201
202 /* State of marker reader --- nominally internal, but applications
203 * supplying COM or APPn handlers might like to know the state.
204 */
205 boolean saw_SOI; /* found SOI? */
206 boolean saw_SOF; /* found SOF? */
207 int next_restart_num; /* next restart number expected (0-7) */
208 unsigned int discarded_bytes; /* # of bytes skipped looking for a marker */
209};
210
211/* Entropy decoding */
214 JMETHOD(boolean, decode_mcu, (j_decompress_ptr cinfo, JBLOCKROW *MCU_data));
216};
217
218/* Inverse DCT (also performs dequantization) */
219typedef JMETHOD(void, inverse_DCT_method_ptr,
223
226 /* It is useful to allow each component to have a separate IDCT method. */
227 inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS];
228};
229
230/* Upsampling (note that upsampler must also call color converter) */
233 JMETHOD(void, upsample, (j_decompress_ptr cinfo,
234 JSAMPIMAGE input_buf,
235 JDIMENSION *in_row_group_ctr,
236 JDIMENSION in_row_groups_avail,
238 JDIMENSION *out_row_ctr,
239 JDIMENSION out_rows_avail));
240
241 boolean need_context_rows; /* TRUE if need rows above & below */
242};
243
244/* Colorspace conversion */
247 JMETHOD(void, color_convert, (j_decompress_ptr cinfo,
248 JSAMPIMAGE input_buf, JDIMENSION input_row,
250};
251
252/* Color quantization or color precision reduction */
254 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, boolean is_pre_scan));
255 JMETHOD(void, color_quantize, (j_decompress_ptr cinfo,
257 int num_rows));
259 JMETHOD(void, new_color_map, (j_decompress_ptr cinfo));
260};
261
262
263/* Definition of range extension bits for decompression processes.
264 * See the comments with prepare_range_limit_table (in jdmaster.c)
265 * for more info.
266 * The recommended default value for normal applications is 2.
267 * Applications with special requirements may use a different value.
268 * For example, Ghostscript wants to use 3 for proper handling of
269 * wacky images with oversize coefficient values.
270 */
271
272#define RANGE_BITS 2
273#define RANGE_CENTER (CENTERJSAMPLE << RANGE_BITS)
274
275
276/* Miscellaneous useful macros */
277
278#undef MAX
279#define MAX(a,b) ((a) > (b) ? (a) : (b))
280#undef MIN
281#define MIN(a,b) ((a) < (b) ? (a) : (b))
282
283
284/* We assume that right shift corresponds to signed division by 2 with
285 * rounding towards minus infinity. This is correct for typical "arithmetic
286 * shift" instructions that shift in copies of the sign bit. But some
287 * C compilers implement >> with an unsigned shift. For these machines you
288 * must define RIGHT_SHIFT_IS_UNSIGNED.
289 * RIGHT_SHIFT provides a proper signed right shift of an INT32 quantity.
290 * It is only applied with constant shift counts. SHIFT_TEMPS must be
291 * included in the variables of any routine using RIGHT_SHIFT.
292 */
293
294#ifdef RIGHT_SHIFT_IS_UNSIGNED
295#define SHIFT_TEMPS INT32 shift_temp;
296#define RIGHT_SHIFT(x,shft) \
297 ((shift_temp = (x)) < 0 ? \
298 (shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \
299 (shift_temp >> (shft)))
300#else
301#define SHIFT_TEMPS
302#define RIGHT_SHIFT(x,shft) ((x) >> (shft))
303#endif
304
305/* Descale and correctly round an INT32 value that's scaled by N bits.
306 * We assume RIGHT_SHIFT rounds towards minus infinity, so adding
307 * the fudge factor is correct for either sign of X.
308 */
309
310#define DESCALE(x,n) RIGHT_SHIFT((x) + ((INT32) 1 << ((n)-1)), n)
311
312
313/* Short forms of external names for systems with brain-damaged linkers. */
314
315#ifdef NEED_SHORT_EXTERNAL_NAMES
316#define jinit_compress_master jICompress
317#define jinit_c_master_control jICMaster
318#define jinit_c_main_controller jICMainC
319#define jinit_c_prep_controller jICPrepC
320#define jinit_c_coef_controller jICCoefC
321#define jinit_color_converter jICColor
322#define jinit_downsampler jIDownsampler
323#define jinit_forward_dct jIFDCT
324#define jinit_huff_encoder jIHEncoder
325#define jinit_arith_encoder jIAEncoder
326#define jinit_marker_writer jIMWriter
327#define jinit_master_decompress jIDMaster
328#define jinit_d_main_controller jIDMainC
329#define jinit_d_coef_controller jIDCoefC
330#define jinit_d_post_controller jIDPostC
331#define jinit_input_controller jIInCtlr
332#define jinit_marker_reader jIMReader
333#define jinit_huff_decoder jIHDecoder
334#define jinit_arith_decoder jIADecoder
335#define jinit_inverse_dct jIIDCT
336#define jinit_upsampler jIUpsampler
337#define jinit_color_deconverter jIDColor
338#define jinit_1pass_quantizer jI1Quant
339#define jinit_2pass_quantizer jI2Quant
340#define jinit_merged_upsampler jIMUpsampler
341#define jinit_memory_mgr jIMemMgr
342#define jdiv_round_up jDivRound
343#define jround_up jRound
344#define jzero_far jZeroFar
345#define jcopy_sample_rows jCopySamples
346#define jcopy_block_row jCopyBlocks
347#define jpeg_zigzag_order jZIGTable
348#define jpeg_natural_order jZAGTable
349#define jpeg_natural_order7 jZAG7Table
350#define jpeg_natural_order6 jZAG6Table
351#define jpeg_natural_order5 jZAG5Table
352#define jpeg_natural_order4 jZAG4Table
353#define jpeg_natural_order3 jZAG3Table
354#define jpeg_natural_order2 jZAG2Table
355#define jpeg_aritab jAriTab
356#endif /* NEED_SHORT_EXTERNAL_NAMES */
357
358
359/* On normal machines we can apply MEMCOPY() and MEMZERO() to sample arrays
360 * and coefficient-block arrays. This won't work on 80x86 because the arrays
361 * are FAR and we're assuming a small-pointer memory model. However, some
362 * DOS compilers provide far-pointer versions of memcpy() and memset() even
363 * in the small-model libraries. These will be used if USE_FMEM is defined.
364 * Otherwise, the routines in jutils.c do it the hard way.
365 */
366
367#ifndef NEED_FAR_POINTERS /* normal case, same as regular macro */
368#define FMEMZERO(target,size) MEMZERO(target,size)
369#else /* 80x86 case */
370#ifdef USE_FMEM
371#define FMEMZERO(target,size) _fmemset((void FAR *)(target), 0, (size_t)(size))
372#else
373EXTERN(void) jzero_far JPP((void FAR * target, size_t bytestozero));
374#define FMEMZERO(target,size) jzero_far(target, size)
375#endif
376#endif
377
378
379/* Compression module initialization routines */
382 boolean transcode_only));
386 boolean need_full_buffer));
388 boolean need_full_buffer));
395/* Decompression module initialization routines */
398 boolean need_full_buffer));
400 boolean need_full_buffer));
402 boolean need_full_buffer));
410EXTERN(void) jinit_1pass_quantizer JPP((j_decompress_ptr cinfo));
411EXTERN(void) jinit_2pass_quantizer JPP((j_decompress_ptr cinfo));
412EXTERN(void) jinit_merged_upsampler JPP((j_decompress_ptr cinfo));
413/* Memory manager initialization */
415
416/* Utility routines in jutils.c */
417EXTERN(long) jdiv_round_up JPP((long a, long b));
418EXTERN(long) jround_up JPP((long a, long b));
424/* Constant tables in jutils.c */
425#if 0 /* This table is not actually needed in v6a */
426extern const int jpeg_zigzag_order[]; /* natural coef order to zigzag order */
427#endif
428extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */
429extern const int jpeg_natural_order7[]; /* zz to natural order for 7x7 block */
430extern const int jpeg_natural_order6[]; /* zz to natural order for 6x6 block */
431extern const int jpeg_natural_order5[]; /* zz to natural order for 5x5 block */
432extern const int jpeg_natural_order4[]; /* zz to natural order for 4x4 block */
433extern const int jpeg_natural_order3[]; /* zz to natural order for 3x3 block */
434extern const int jpeg_natural_order2[]; /* zz to natural order for 2x2 block */
435
436/* Arithmetic coding probability estimation tables in jaricom.c */
437extern const INT32 jpeg_aritab[];
438
439/* Suppress undefined-structure complaints if necessary. */
440
441#ifdef INCOMPLETE_TYPES_BROKEN
442#ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */
443struct jvirt_sarray_control { long dummy; };
444struct jvirt_barray_control { long dummy; };
445#endif
446#endif /* INCOMPLETE_TYPES_BROKEN */
signed int INT32
#define FAR
Definition: zlib.h:34
GLboolean GLboolean GLboolean b
Definition: glext.h:6204
GLuint GLfloat * val
Definition: glext.h:7180
GLboolean GLboolean GLboolean GLboolean a
Definition: glext.h:6204
GLenum target
Definition: glext.h:7315
jinit_arith_encoder(j_compress_ptr cinfo)
Definition: jcarith.c:926
finish_pass(j_compress_ptr cinfo)
Definition: jcarith.c:133
encode_mcu(j_compress_ptr cinfo, JBLOCKROW *MCU_data)
Definition: jcarith.c:694
start_pass(j_compress_ptr cinfo, boolean gather_statistics)
Definition: jcarith.c:843
jinit_c_coef_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition: jccoefct.c:410
compress_data(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
Definition: jccoefct.c:144
jinit_color_converter(j_compress_ptr cinfo)
Definition: jccolor.c:438
jinit_forward_dct(j_compress_ptr cinfo)
Definition: jcdctmgr.c:458
jinit_huff_encoder(j_compress_ptr cinfo)
Definition: jchuff.c:1622
jinit_compress_master(j_compress_ptr cinfo)
Definition: jcinit.c:193
jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition: jcmainct.c:248
write_file_header(j_compress_ptr cinfo)
Definition: jcmarker.c:518
write_frame_header(j_compress_ptr cinfo)
Definition: jcmarker.c:544
write_marker_byte(j_compress_ptr cinfo, int val)
Definition: jcmarker.c:499
write_marker_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
Definition: jcmarker.c:487
jinit_marker_writer(j_compress_ptr cinfo)
Definition: jcmarker.c:699
write_file_trailer(j_compress_ptr cinfo)
Definition: jcmarker.c:656
write_scan_header(j_compress_ptr cinfo)
Definition: jcmarker.c:612
write_tables_only(j_compress_ptr cinfo)
Definition: jcmarker.c:670
pass_startup(j_compress_ptr cinfo)
Definition: jcmaster.c:569
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
Definition: jcmaster.c:623
prepare_for_pass(j_compress_ptr cinfo)
Definition: jcmaster.c:481
jinit_c_prep_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition: jcprepct.c:318
pre_process_data(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail, JSAMPIMAGE output_buf, JDIMENSION *out_row_group_ctr, JDIMENSION out_row_groups_avail)
Definition: jcprepct.c:128
jinit_downsampler(j_compress_ptr cinfo)
Definition: jcsample.c:478
decode_mcu(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
Definition: jdarith.c:512
jinit_arith_decoder(j_decompress_ptr cinfo)
Definition: jdarith.c:765
jinit_d_coef_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition: jdcoefct.c:678
start_input_pass(j_decompress_ptr cinfo)
Definition: jdcoefct.c:108
start_output_pass(j_decompress_ptr cinfo)
Definition: jdcoefct.c:120
jinit_color_deconverter(j_decompress_ptr cinfo)
Definition: jdcolor.c:568
jpeg_component_info JCOEFPTR coef_block
Definition: jdct.h:239
jpeg_component_info JCOEFPTR JSAMPARRAY JDIMENSION output_col
Definition: jdct.h:239
JSAMPARRAY JDIMENSION start_col
Definition: jdct.h:169
jpeg_component_info * compptr
Definition: jdct.h:238
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
Definition: jdct.h:239
JSAMPARRAY sample_data
Definition: jdct.h:169
jinit_inverse_dct(j_decompress_ptr cinfo)
Definition: jddctmgr.c:362
jinit_huff_decoder(j_decompress_ptr cinfo)
Definition: jdhuff.c:1527
static const int jpeg_zigzag_order[8][8]
Definition: jdhuff.c:260
jinit_input_controller(j_decompress_ptr cinfo)
Definition: jdinput.c:642
reset_input_controller(j_decompress_ptr cinfo)
Definition: jdinput.c:620
finish_input_pass(j_decompress_ptr cinfo)
Definition: jdinput.c:538
jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition: jdmainct.c:469
reset_marker_reader(j_decompress_ptr cinfo)
Definition: jdmarker.c:1388
jinit_marker_reader(j_decompress_ptr cinfo)
Definition: jdmarker.c:1408
read_markers(j_decompress_ptr cinfo)
Definition: jdmarker.c:1090
jinit_master_decompress(j_decompress_ptr cinfo)
Definition: jdmaster.c:526
finish_output_pass(j_decompress_ptr cinfo)
Definition: jdmaster.c:481
prepare_for_output_pass(j_decompress_ptr cinfo)
Definition: jdmaster.c:421
jinit_d_post_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition: jdpostct.c:250
jinit_upsampler(j_decompress_ptr cinfo)
Definition: jdsample.c:294
jinit_memory_mgr(j_common_ptr cinfo)
Definition: jmemmgr.c:1025
unsigned int JDIMENSION
Definition: jmorecfg.h:229
#define MAX_COMPONENTS
Definition: jmorecfg.h:45
#define JMETHOD(type, methodname, arglist)
Definition: jmorecfg.h:308
const int jpeg_natural_order5[]
Definition: jutils.c:89
J_BUF_MODE
Definition: jpegint.h:17
@ JBUF_SAVE_SOURCE
Definition: jpegint.h:20
@ JBUF_PASS_THRU
Definition: jpegint.h:18
@ JBUF_SAVE_AND_PASS
Definition: jpegint.h:22
@ JBUF_CRANK_DEST
Definition: jpegint.h:21
const int jpeg_natural_order3[]
Definition: jutils.c:105
const int jpeg_natural_order4[]
Definition: jutils.c:98
JBLOCKROW output_row
Definition: jpegint.h:422
boolean transcode_only
Definition: jpegint.h:382
const int jpeg_natural_order[]
Definition: jutils.c:54
const int jpeg_natural_order6[]
Definition: jutils.c:79
const int jpeg_natural_order2[]
Definition: jutils.c:112
boolean need_full_buffer
Definition: jpegint.h:384
EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo))
const int jpeg_natural_order7[]
Definition: jutils.c:67
int JSAMPARRAY int int num_rows
Definition: jpegint.h:421
JBLOCKROW JDIMENSION num_blocks
Definition: jpegint.h:423
int JSAMPARRAY int int JDIMENSION num_cols
Definition: jpegint.h:421
int JSAMPARRAY output_array
Definition: jpegint.h:420
int source_row
Definition: jpegint.h:419
const INT32 jpeg_aritab[]
Definition: jaricom.c:31
int JSAMPARRAY int dest_row
Definition: jpegint.h:420
JBLOCK FAR * JBLOCKROW
Definition: jpeglib.h:80
#define JPP(arglist)
Definition: jpeglib.h:877
int const JOCTET unsigned int datalen
Definition: jpeglib.h:1031
JSAMPARRAY * JSAMPIMAGE
Definition: jpeglib.h:77
int marker
Definition: jpeglib.h:1030
JCOEF FAR * JCOEFPTR
Definition: jpeglib.h:84
JSAMPROW * JSAMPARRAY
Definition: jpeglib.h:76
jdiv_round_up(long a, long b)
Definition: jutils.c:124
jcopy_block_row(JBLOCKROW input_row, JBLOCKROW output_row, JDIMENSION num_blocks)
Definition: jutils.c:211
jround_up(long a, long b)
Definition: jutils.c:133
jcopy_sample_rows(JSAMPARRAY input_array, int source_row, JSAMPARRAY output_array, int dest_row, int num_rows, JDIMENSION num_cols)
Definition: jutils.c:177
static void process_data(ID3DXFileData *xfile_data, int level)
Definition: xfile.c:247
JMETHOD(boolean, compress_data,(j_compress_ptr cinfo, JSAMPIMAGE input_buf))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, process_data,(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail))
JMETHOD(void, pre_process_data,(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail, JSAMPIMAGE output_buf, JDIMENSION *out_row_group_ctr, JDIMENSION out_row_groups_avail))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
JMETHOD(void, color_convert,(j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
JMETHOD(void, color_convert,(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, boolean is_pre_scan))
JMETHOD(void, new_color_map,(j_decompress_ptr cinfo))
JMETHOD(void, finish_pass,(j_decompress_ptr cinfo))
JMETHOD(void, color_quantize,(j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows))
boolean call_pass_startup
Definition: jpegint.h:52
JMETHOD(void, finish_pass,(j_compress_ptr cinfo))
boolean is_last_pass
Definition: jpegint.h:53
JMETHOD(void, pass_startup,(j_compress_ptr cinfo))
JMETHOD(void, prepare_for_pass,(j_compress_ptr cinfo))
JMETHOD(int, consume_data,(j_decompress_ptr cinfo))
JMETHOD(int, decompress_data,(j_decompress_ptr cinfo, JSAMPIMAGE output_buf))
jvirt_barray_ptr * coef_arrays
Definition: jpegint.h:176
JMETHOD(void, start_input_pass,(j_decompress_ptr cinfo))
JMETHOD(void, start_output_pass,(j_decompress_ptr cinfo))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, process_data,(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
Definition: jpegint.h:180
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, post_process_data,(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
JMETHOD(void, finish_output_pass,(j_decompress_ptr cinfo))
boolean is_dummy_pass
Definition: jpegint.h:145
JMETHOD(void, prepare_for_output_pass,(j_decompress_ptr cinfo))
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
JMETHOD(void, downsample,(j_compress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION in_row_index, JSAMPIMAGE output_buf, JDIMENSION out_row_group_index))
boolean need_context_rows
Definition: jpegint.h:99
JMETHOD(boolean, decode_mcu,(j_decompress_ptr cinfo, JBLOCKROW *MCU_data))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
JMETHOD(void, finish_pass,(j_decompress_ptr cinfo))
JMETHOD(void, finish_pass,(j_compress_ptr cinfo))
JMETHOD(boolean, encode_mcu,(j_compress_ptr cinfo, JBLOCKROW *MCU_data))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, boolean gather_statistics))
forward_DCT_ptr forward_DCT[MAX_COMPONENTS]
Definition: jpegint.h:112
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
boolean has_multiple_scans
Definition: jpegint.h:156
JMETHOD(void, finish_input_pass,(j_decompress_ptr cinfo))
JMETHOD(void, reset_input_controller,(j_decompress_ptr cinfo))
JMETHOD(void, start_input_pass,(j_decompress_ptr cinfo))
JMETHOD(int, consume_input,(j_decompress_ptr cinfo))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS]
Definition: jpegint.h:227
boolean saw_SOF
Definition: jpegint.h:206
jpeg_marker_parser_method read_restart_marker
Definition: jpegint.h:200
JMETHOD(int, read_markers,(j_decompress_ptr cinfo))
unsigned int discarded_bytes
Definition: jpegint.h:208
boolean saw_SOI
Definition: jpegint.h:205
JMETHOD(void, reset_marker_reader,(j_decompress_ptr cinfo))
JMETHOD(void, write_frame_header,(j_compress_ptr cinfo))
JMETHOD(void, write_marker_byte,(j_compress_ptr cinfo, int val))
JMETHOD(void, write_scan_header,(j_compress_ptr cinfo))
JMETHOD(void, write_marker_header,(j_compress_ptr cinfo, int marker, unsigned int datalen))
JMETHOD(void, write_tables_only,(j_compress_ptr cinfo))
JMETHOD(void, write_file_header,(j_compress_ptr cinfo))
JMETHOD(void, write_file_trailer,(j_compress_ptr cinfo))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
JMETHOD(void, upsample,(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
boolean need_context_rows
Definition: jpegint.h:241