Assignments Assignments

jpegint.h
Go to the documentation of this file.
1/*
2 * jpegint.h
3 *
4 * Copyright (C) 1991-1997, Thomas G. Lane.
5 * This file is part of the Independent JPEG Group's software.
6 * For conditions of distribution and use, see the accompanying README file.
7 *
8 * This file provides common declarations for the various JPEG modules.
9 * These declarations are considered internal to the JPEG library; most
10 * applications using the library shouldn't need to include this file.
11 */
12
13
14/* Declarations for both compression & decompression */
15
16 typedef enum { /* Operating modes for buffer controllers */
17 JBUF_PASS_THRU, /* Plain stripwise operation */
18 /* Remaining modes require a full-image buffer to have been created */
19 JBUF_SAVE_SOURCE, /* Run source subobject only, save output */
20 JBUF_CRANK_DEST, /* Run dest subobject only, using saved data */
21 JBUF_SAVE_AND_PASS /* Run both subobjects, save output */
22} J_BUF_MODE;
23
24/* Values of global_state field (jdapi.c has some dependencies on ordering!) */
25#define CSTATE_START 100 /* after create_compress */
26#define CSTATE_SCANNING 101 /* start_compress done, write_scanlines OK */
27#define CSTATE_RAW_OK 102 /* start_compress done, write_raw_data OK */
28#define CSTATE_WRCOEFS 103 /* jpeg_write_coefficients done */
29#define DSTATE_START 200 /* after create_decompress */
30#define DSTATE_INHEADER 201 /* reading header markers, no SOS yet */
31#define DSTATE_READY 202 /* found SOS, ready for start_decompress */
32#define DSTATE_PRELOAD 203 /* reading multiscan file in start_decompress*/
33#define DSTATE_PRESCAN 204 /* performing dummy pass for 2-pass quant */
34#define DSTATE_SCANNING 205 /* start_decompress done, read_scanlines OK */
35#define DSTATE_RAW_OK 206 /* start_decompress done, read_raw_data OK */
36#define DSTATE_BUFIMAGE 207 /* expecting jpeg_start_output */
37#define DSTATE_BUFPOST 208 /* looking for SOS/EOI in jpeg_finish_output */
38#define DSTATE_RDCOEFS 209 /* reading file in jpeg_read_coefficients */
39#define DSTATE_STOPPING 210 /* looking for EOI in jpeg_finish_decompress */
40
41
42/* Declarations for compression modules */
43
44/* Master control module */
45 struct jpeg_comp_master {
46 JMETHOD(void, prepare_for_pass, (j_compress_ptr cinfo));
47 JMETHOD(void, pass_startup, (j_compress_ptr cinfo));
48 JMETHOD(void, finish_pass, (j_compress_ptr cinfo));
49
50 /* State variables made visible to other modules */
51 boolean call_pass_startup; /* True if pass_startup must be called */
52 boolean is_last_pass; /* True during last pass */
53};
54
55/* Main buffer control (downsampled-data buffer) */
56 struct jpeg_c_main_controller {
57 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
58 JMETHOD(void, process_data, (j_compress_ptr cinfo,
59 JSAMPARRAY input_buf, JDIMENSION *in_row_ctr,
60 JDIMENSION in_rows_avail));
61};
62
63/* Compression preprocessing (downsampling input buffer control) */
64 struct jpeg_c_prep_controller {
65 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
66 JMETHOD(void, pre_process_data, (j_compress_ptr cinfo,
67 JSAMPARRAY input_buf,
68 JDIMENSION *in_row_ctr,
69 JDIMENSION in_rows_avail,
70 JSAMPIMAGE output_buf,
71 JDIMENSION *out_row_group_ctr,
72 JDIMENSION out_row_groups_avail));
73};
74
75/* Coefficient buffer control */
76 struct jpeg_c_coef_controller {
77 JMETHOD(void, start_pass, (j_compress_ptr cinfo, J_BUF_MODE pass_mode));
78 JMETHOD(boolean, compress_data, (j_compress_ptr cinfo,
79 JSAMPIMAGE input_buf));
80};
81
82/* Colorspace conversion */
83 struct jpeg_color_converter {
84 JMETHOD(void, start_pass, (j_compress_ptr cinfo));
85 JMETHOD(void, color_convert, (j_compress_ptr cinfo,
86 JSAMPARRAY input_buf, JSAMPIMAGE output_buf,
87 JDIMENSION output_row, int num_rows));
88};
89
90/* Downsampling */
91 struct jpeg_downsampler {
92 JMETHOD(void, start_pass, (j_compress_ptr cinfo));
93 JMETHOD(void, downsample, (j_compress_ptr cinfo,
94 JSAMPIMAGE input_buf, JDIMENSION in_row_index,
95 JSAMPIMAGE output_buf,
96 JDIMENSION out_row_group_index));
97
98 boolean need_context_rows; /* TRUE if need rows above & below */
99};
100
101/* Forward DCT (also controls coefficient quantization) */
102 struct jpeg_forward_dct {
103 JMETHOD(void, start_pass, (j_compress_ptr cinfo));
104 /* perhaps this should be an array??? */
105 JMETHOD(void, forward_DCT, (j_compress_ptr cinfo,
106 jpeg_component_info * compptr,
107 JSAMPARRAY sample_data, JBLOCKROW coef_blocks,
108 JDIMENSION start_row, JDIMENSION start_col,
109 JDIMENSION num_blocks));
110};
111
112/* Entropy encoding */
113 struct jpeg_entropy_encoder {
114 JMETHOD(void, start_pass, (j_compress_ptr cinfo, boolean gather_statistics));
115 JMETHOD(boolean, encode_mcu, (j_compress_ptr cinfo, JBLOCKROW *MCU_data));
116 JMETHOD(void, finish_pass, (j_compress_ptr cinfo));
117};
118
119/* Marker writing */
120 struct jpeg_marker_writer {
121 JMETHOD(void, write_file_header, (j_compress_ptr cinfo));
122 JMETHOD(void, write_frame_header, (j_compress_ptr cinfo));
123 JMETHOD(void, write_scan_header, (j_compress_ptr cinfo));
124 JMETHOD(void, write_file_trailer, (j_compress_ptr cinfo));
125 JMETHOD(void, write_tables_only, (j_compress_ptr cinfo));
126 /* These routines are exported to allow insertion of extra markers */
127 /* Probably only COM and APPn markers should be written this way */
128 JMETHOD(void, write_marker_header, (j_compress_ptr cinfo, int marker,
129 unsigned int datalen));
130 JMETHOD(void, write_marker_byte, (j_compress_ptr cinfo, int val));
131};
132
133
134/* Declarations for decompression modules */
135
136/* Master control module */
137 struct jpeg_decomp_master {
138 JMETHOD(void, prepare_for_output_pass, (j_decompress_ptr cinfo));
139 JMETHOD(void, finish_output_pass, (j_decompress_ptr cinfo));
140
141 /* State variables made visible to other modules */
142 boolean is_dummy_pass; /* True during 1st pass for 2-pass quant */
143};
144
145/* Input control module */
146 struct jpeg_input_controller {
147 JMETHOD(int, consume_input, (j_decompress_ptr cinfo));
148 JMETHOD(void, reset_input_controller, (j_decompress_ptr cinfo));
149 JMETHOD(void, start_input_pass, (j_decompress_ptr cinfo));
150 JMETHOD(void, finish_input_pass, (j_decompress_ptr cinfo));
151
152 /* State variables made visible to other modules */
153 boolean has_multiple_scans; /* True if file has multiple scans */
154 boolean eoi_reached; /* True when EOI has been consumed */
155};
156
157/* Main buffer control (downsampled-data buffer) */
158 struct jpeg_d_main_controller {
159 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, J_BUF_MODE pass_mode));
160 JMETHOD(void, process_data, (j_decompress_ptr cinfo,
161 JSAMPARRAY output_buf, JDIMENSION *out_row_ctr,
162 JDIMENSION out_rows_avail));
163};
164
165/* Coefficient buffer control */
166 struct jpeg_d_coef_controller {
167 JMETHOD(void, start_input_pass, (j_decompress_ptr cinfo));
168 JMETHOD(int, consume_data, (j_decompress_ptr cinfo));
169 JMETHOD(void, start_output_pass, (j_decompress_ptr cinfo));
170 JMETHOD(int, decompress_data, (j_decompress_ptr cinfo,
171 JSAMPIMAGE output_buf));
172 /* Pointer to array of coefficient virtual arrays, or NULL if none */
173 jvirt_barray_ptr *coef_arrays;
174};
175
176/* Decompression postprocessing (color quantization buffer control) */
177 struct jpeg_d_post_controller {
178 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, J_BUF_MODE pass_mode));
179 JMETHOD(void, post_process_data, (j_decompress_ptr cinfo,
180 JSAMPIMAGE input_buf,
181 JDIMENSION *in_row_group_ctr,
182 JDIMENSION in_row_groups_avail,
183 JSAMPARRAY output_buf,
184 JDIMENSION *out_row_ctr,
185 JDIMENSION out_rows_avail));
186};
187
188/* Marker reading & parsing */
189 struct jpeg_marker_reader {
190 JMETHOD(void, reset_marker_reader, (j_decompress_ptr cinfo));
191 /* Read markers until SOS or EOI.
192 * Returns same codes as are defined for jpeg_consume_input:
193 * JPEG_SUSPENDED, JPEG_REACHED_SOS, or JPEG_REACHED_EOI.
194 */
195 JMETHOD(int, read_markers, (j_decompress_ptr cinfo));
196 /* Read a restart marker --- exported for use by entropy decoder only */
197 jpeg_marker_parser_method read_restart_marker;
198
199 /* State of marker reader --- nominally internal, but applications
200 * supplying COM or APPn handlers might like to know the state.
201 */
202 boolean saw_SOI; /* found SOI? */
203 boolean saw_SOF; /* found SOF? */
204 int next_restart_num; /* next restart number expected (0-7) */
205 unsigned int discarded_bytes; /* # of bytes skipped looking for a marker */
206};
207
208/* Entropy decoding */
209 struct jpeg_entropy_decoder {
210 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
211 JMETHOD(boolean, decode_mcu, (j_decompress_ptr cinfo,
212 JBLOCKROW *MCU_data));
213
214 /* This is here to share code between baseline and progressive decoders; */
215 /* other modules probably should not use it */
216 boolean insufficient_data; /* set TRUE after emitting warning */
217};
218
219/* Inverse DCT (also performs dequantization) */
220 typedef JMETHOD(void, inverse_DCT_method_ptr,
221 (j_decompress_ptr cinfo, jpeg_component_info * compptr,
222 JCOEFPTR coef_block,
223 JSAMPARRAY output_buf, JDIMENSION output_col));
224
225 struct jpeg_inverse_dct {
226 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
227 /* It is useful to allow each component to have a separate IDCT method. */
228 inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS];
229};
230
231/* Upsampling (note that upsampler must also call color converter) */
232 struct jpeg_upsampler {
233 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
234 JMETHOD(void, upsample, (j_decompress_ptr cinfo,
235 JSAMPIMAGE input_buf,
236 JDIMENSION *in_row_group_ctr,
237 JDIMENSION in_row_groups_avail,
238 JSAMPARRAY output_buf,
239 JDIMENSION *out_row_ctr,
240 JDIMENSION out_rows_avail));
241
242 boolean need_context_rows; /* TRUE if need rows above & below */
243};
244
245/* Colorspace conversion */
246 struct jpeg_color_deconverter {
247 JMETHOD(void, start_pass, (j_decompress_ptr cinfo));
248 JMETHOD(void, color_convert, (j_decompress_ptr cinfo,
249 JSAMPIMAGE input_buf, JDIMENSION input_row,
250 JSAMPARRAY output_buf, int num_rows));
251};
252
253/* Color quantization or color precision reduction */
254 struct jpeg_color_quantizer {
255 JMETHOD(void, start_pass, (j_decompress_ptr cinfo, boolean is_pre_scan));
256 JMETHOD(void, color_quantize, (j_decompress_ptr cinfo,
257 JSAMPARRAY input_buf, JSAMPARRAY output_buf,
258 int num_rows));
259 JMETHOD(void, finish_pass, (j_decompress_ptr cinfo));
260 JMETHOD(void, new_color_map, (j_decompress_ptr cinfo));
261};
262
263
264/* Miscellaneous useful macros */
265
266#undef MAX
267#define MAX(a,b) ((a) > (b) ? (a) : (b))
268#undef MIN
269#define MIN(a,b) ((a) < (b) ? (a) : (b))
270
271
272/* We assume that right shift corresponds to signed division by 2 with
273 * rounding towards minus infinity. This is correct for typical "arithmetic
274 * shift" instructions that shift in copies of the sign bit. But some
275 * C compilers implement >> with an unsigned shift. For these machines you
276 * must define RIGHT_SHIFT_IS_UNSIGNED.
277 * RIGHT_SHIFT provides a proper signed right shift of an INT32 quantity.
278 * It is only applied with constant shift counts. SHIFT_TEMPS must be
279 * included in the variables of any routine using RIGHT_SHIFT.
280 */
281
282#ifdef RIGHT_SHIFT_IS_UNSIGNED
283#define SHIFT_TEMPS INT32 shift_temp;
284#define RIGHT_SHIFT(x,shft) \
285 ((shift_temp = (x)) < 0 ? \
286 (shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \
287 (shift_temp >> (shft)))
288#else
289#define SHIFT_TEMPS
290#define RIGHT_SHIFT(x,shft) ((x) >> (shft))
291#endif
292
293
294/* Short forms of external names for systems with brain-damaged linkers. */
295
296#ifdef NEED_SHORT_EXTERNAL_NAMES
297#define jinit_compress_master jICompress
298#define jinit_c_master_control jICMaster
299#define jinit_c_main_controller jICMainC
300#define jinit_c_prep_controller jICPrepC
301#define jinit_c_coef_controller jICCoefC
302#define jinit_color_converter jICColor
303#define jinit_downsampler jIDownsampler
304#define jinit_forward_dct jIFDCT
305#define jinit_huff_encoder jIHEncoder
306#define jinit_phuff_encoder jIPHEncoder
307#define jinit_marker_writer jIMWriter
308#define jinit_master_decompress jIDMaster
309#define jinit_d_main_controller jIDMainC
310#define jinit_d_coef_controller jIDCoefC
311#define jinit_d_post_controller jIDPostC
312#define jinit_input_controller jIInCtlr
313#define jinit_marker_reader jIMReader
314#define jinit_huff_decoder jIHDecoder
315#define jinit_phuff_decoder jIPHDecoder
316#define jinit_inverse_dct jIIDCT
317#define jinit_upsampler jIUpsampler
318#define jinit_color_deconverter jIDColor
319#define jinit_1pass_quantizer jI1Quant
320#define jinit_2pass_quantizer jI2Quant
321#define jinit_merged_upsampler jIMUpsampler
322#define jinit_memory_mgr jIMemMgr
323#define jdiv_round_up jDivRound
324#define jround_up jRound
325#define jcopy_sample_rows jCopySamples
326#define jcopy_block_row jCopyBlocks
327#define jzero_far jZeroFar
328#define jpeg_zigzag_order jZIGTable
329#define jpeg_natural_order jZAGTable
330#endif /* NEED_SHORT_EXTERNAL_NAMES */
331
332
333/* Compression module initialization routines */
334 EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo));
335 EXTERN(void) jinit_c_master_control JPP((j_compress_ptr cinfo,
336 boolean transcode_only));
337 EXTERN(void) jinit_c_main_controller JPP((j_compress_ptr cinfo,
338 boolean need_full_buffer));
339 EXTERN(void) jinit_c_prep_controller JPP((j_compress_ptr cinfo,
340 boolean need_full_buffer));
341 EXTERN(void) jinit_c_coef_controller JPP((j_compress_ptr cinfo,
342 boolean need_full_buffer));
343 EXTERN(void) jinit_color_converter JPP((j_compress_ptr cinfo));
344 EXTERN(void) jinit_downsampler JPP((j_compress_ptr cinfo));
345 EXTERN(void) jinit_forward_dct JPP((j_compress_ptr cinfo));
346 EXTERN(void) jinit_huff_encoder JPP((j_compress_ptr cinfo));
347 EXTERN(void) jinit_phuff_encoder JPP((j_compress_ptr cinfo));
348 EXTERN(void) jinit_marker_writer JPP((j_compress_ptr cinfo));
349/* Decompression module initialization routines */
350 EXTERN(void) jinit_master_decompress JPP((j_decompress_ptr cinfo));
351 EXTERN(void) jinit_d_main_controller JPP((j_decompress_ptr cinfo,
352 boolean need_full_buffer));
353 EXTERN(void) jinit_d_coef_controller JPP((j_decompress_ptr cinfo,
354 boolean need_full_buffer));
355 EXTERN(void) jinit_d_post_controller JPP((j_decompress_ptr cinfo,
356 boolean need_full_buffer));
357 EXTERN(void) jinit_input_controller JPP((j_decompress_ptr cinfo));
358 EXTERN(void) jinit_marker_reader JPP((j_decompress_ptr cinfo));
359 EXTERN(void) jinit_huff_decoder JPP((j_decompress_ptr cinfo));
360 EXTERN(void) jinit_phuff_decoder JPP((j_decompress_ptr cinfo));
361 EXTERN(void) jinit_inverse_dct JPP((j_decompress_ptr cinfo));
362 EXTERN(void) jinit_upsampler JPP((j_decompress_ptr cinfo));
363 EXTERN(void) jinit_color_deconverter JPP((j_decompress_ptr cinfo));
364 EXTERN(void) jinit_1pass_quantizer JPP((j_decompress_ptr cinfo));
365 EXTERN(void) jinit_2pass_quantizer JPP((j_decompress_ptr cinfo));
366 EXTERN(void) jinit_merged_upsampler JPP((j_decompress_ptr cinfo));
367/* Memory manager initialization */
368 EXTERN(void) jinit_memory_mgr JPP((j_common_ptr cinfo));
369
370/* Utility routines in jutils.c */
371 EXTERN(long) jdiv_round_up JPP((long a, long b));
372 EXTERN(long) jround_up JPP((long a, long b));
373 EXTERN(void) jcopy_sample_rows JPP((JSAMPARRAY input_array, int source_row,
374 JSAMPARRAY output_array, int dest_row,
375 int num_rows, JDIMENSION num_cols));
376 EXTERN(void) jcopy_block_row JPP((JBLOCKROW input_row, JBLOCKROW output_row,
377 JDIMENSION num_blocks));
378 EXTERN(void) jzero_far JPP((void FAR * target, size_t bytestozero));
379/* Constant tables in jutils.c */
380#if 0 /* This table is not actually needed in v6a */
381 extern const int jpeg_zigzag_order[]; /* natural coef order to zigzag order */
382#endif
383 extern const int jpeg_natural_order[]; /* zigzag coef order to natural order */
384
385/* Suppress undefined-structure complaints if necessary. */
386
387#ifdef INCOMPLETE_TYPES_BROKEN
388#ifndef AM_MEMORY_MANAGER /* only jmemmgr.c defines these */
389 struct jvirt_sarray_control { long dummy; };
390 struct jvirt_barray_control { long dummy; };
391#endif
392#endif /* INCOMPLETE_TYPES_BROKEN */
jinit_c_coef_controller
jinit_c_coef_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition jccoefct.cpp:405
compress_data
compress_data(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
Definition jccoefct.cpp:143
input_buf
JSAMPIMAGE input_buf
Definition jccoefct.cpp:62
jinit_color_converter
jinit_color_converter(j_compress_ptr cinfo)
Definition jccolor.cpp:352
jinit_forward_dct
jinit_forward_dct(j_compress_ptr cinfo)
Definition jcdctmgr.cpp:345
forward_DCT
forward_DCT(j_compress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY sample_data, JBLOCKROW coef_blocks, JDIMENSION start_row, JDIMENSION start_col, JDIMENSION num_blocks)
Definition jcdctmgr.cpp:180
jinit_huff_encoder
jinit_huff_encoder(j_compress_ptr cinfo)
Definition jchuff.cpp:891
MCU_data
JBLOCKROW * MCU_data
Definition jchuff.cpp:90
jinit_compress_master
jinit_compress_master(j_compress_ptr cinfo)
Definition jcinit.cpp:30
jinit_c_main_controller
jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition jcmainct.cpp:245
in_row_ctr
JSAMPARRAY JDIMENSION * in_row_ctr
Definition jcmainct.cpp:56
in_rows_avail
JSAMPARRAY JDIMENSION JDIMENSION in_rows_avail
Definition jcmainct.cpp:56
write_file_header
write_file_header(j_compress_ptr cinfo)
Definition jcmarker.cpp:469
write_frame_header
write_frame_header(j_compress_ptr cinfo)
Definition jcmarker.cpp:494
write_marker_byte
write_marker_byte(j_compress_ptr cinfo, int val)
Definition jcmarker.cpp:450
write_marker_header
write_marker_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
Definition jcmarker.cpp:438
jinit_marker_writer
jinit_marker_writer(j_compress_ptr cinfo)
Definition jcmarker.cpp:645
write_file_trailer
write_file_trailer(j_compress_ptr cinfo)
Definition jcmarker.cpp:602
write_scan_header
write_scan_header(j_compress_ptr cinfo)
Definition jcmarker.cpp:551
write_tables_only
write_tables_only(j_compress_ptr cinfo)
Definition jcmarker.cpp:616
pass_startup
pass_startup(j_compress_ptr cinfo)
Definition jcmaster.cpp:489
jinit_c_master_control
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
Definition jcmaster.cpp:543
prepare_for_pass
prepare_for_pass(j_compress_ptr cinfo)
Definition jcmaster.cpp:401
jinit_c_prep_controller
jinit_c_prep_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition jcprepct.cpp:315
pre_process_data
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.cpp:128
jinit_downsampler
jinit_downsampler(j_compress_ptr cinfo)
Definition jcsample.cpp:464
jinit_d_coef_controller
jinit_d_coef_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition jdcoefct.cpp:676
output_buf
JSAMPIMAGE output_buf
Definition jdcoefct.cpp:66
start_input_pass
start_input_pass(j_decompress_ptr cinfo)
Definition jdcoefct.cpp:107
start_output_pass
start_output_pass(j_decompress_ptr cinfo)
Definition jdcoefct.cpp:119
jinit_color_deconverter
jinit_color_deconverter(j_decompress_ptr cinfo)
Definition jdcolor.cpp:304
coef_block
jpeg_component_info JCOEFPTR coef_block
Definition jdct.h:103
output_col
jpeg_component_info JCOEFPTR JSAMPARRAY JDIMENSION output_col
Definition jdct.h:103
compptr
jpeg_component_info * compptr
Definition jdct.h:102
start_pass
start_pass(j_decompress_ptr cinfo)
Definition jddctmgr.cpp:89
jinit_inverse_dct
jinit_inverse_dct(j_decompress_ptr cinfo)
Definition jddctmgr.cpp:247
decode_mcu
decode_mcu(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
Definition jdhuff.cpp:517
jinit_huff_decoder
jinit_huff_decoder(j_decompress_ptr cinfo)
Definition jdhuff.cpp:635
jinit_input_controller
jinit_input_controller(j_decompress_ptr cinfo)
Definition jdinput.cpp:361
reset_input_controller
reset_input_controller(j_decompress_ptr cinfo)
Definition jdinput.cpp:339
finish_input_pass
finish_input_pass(j_decompress_ptr cinfo)
Definition jdinput.cpp:271
out_row_ctr
JSAMPARRAY JDIMENSION * out_row_ctr
Definition jdmainct.cpp:145
out_rows_avail
JSAMPARRAY JDIMENSION JDIMENSION out_rows_avail
Definition jdmainct.cpp:145
jinit_d_main_controller
jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition jdmainct.cpp:476
reset_marker_reader
reset_marker_reader(j_decompress_ptr cinfo)
Definition jdmarker.cpp:1242
jinit_marker_reader
jinit_marker_reader(j_decompress_ptr cinfo)
Definition jdmarker.cpp:1262
read_markers
read_markers(j_decompress_ptr cinfo)
Definition jdmarker.cpp:952
jinit_master_decompress
jinit_master_decompress(j_decompress_ptr cinfo)
Definition jdmaster.cpp:543
finish_output_pass
finish_output_pass(j_decompress_ptr cinfo)
Definition jdmaster.cpp:498
prepare_for_output_pass
prepare_for_output_pass(j_decompress_ptr cinfo)
Definition jdmaster.cpp:438
in_row_group_ctr
JSAMPIMAGE JDIMENSION * in_row_group_ctr
Definition jdpostct.cpp:48
jinit_d_post_controller
jinit_d_post_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition jdpostct.cpp:250
in_row_groups_avail
JSAMPIMAGE JDIMENSION JDIMENSION in_row_groups_avail
Definition jdpostct.cpp:49
jinit_upsampler
jinit_upsampler(j_decompress_ptr cinfo)
Definition jdsample.cpp:399
jinit_memory_mgr
jinit_memory_mgr(j_common_ptr cinfo)
Definition jmemmgr.cpp:1028
JDIMENSION
unsigned int JDIMENSION
Definition jmorecfg.h:171
MAX_COMPONENTS
#define MAX_COMPONENTS
Definition jmorecfg.h:35
JMETHOD
#define JMETHOD(type, methodname, arglist)
Definition jmorecfg.h:202
FAR
#define FAR
Definition jmorecfg.h:215
J_BUF_MODE
J_BUF_MODE
Definition jpegint.h:16
JBUF_SAVE_SOURCE
@ JBUF_SAVE_SOURCE
Definition jpegint.h:19
JBUF_PASS_THRU
@ JBUF_PASS_THRU
Definition jpegint.h:17
JBUF_SAVE_AND_PASS
@ JBUF_SAVE_AND_PASS
Definition jpegint.h:21
JBUF_CRANK_DEST
@ JBUF_CRANK_DEST
Definition jpegint.h:20
output_row
JBLOCKROW output_row
Definition jpegint.h:376
transcode_only
boolean transcode_only
Definition jpegint.h:336
jpeg_natural_order
const int jpeg_natural_order[]
Definition jutils.cpp:53
need_full_buffer
boolean need_full_buffer
Definition jpegint.h:338
EXTERN
EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo))
num_rows
int JSAMPARRAY int int num_rows
Definition jpegint.h:375
num_blocks
JBLOCKROW JDIMENSION num_blocks
Definition jpegint.h:377
num_cols
int JSAMPARRAY int int JDIMENSION num_cols
Definition jpegint.h:375
output_array
int JSAMPARRAY output_array
Definition jpegint.h:374
source_row
int source_row
Definition jpegint.h:373
bytestozero
size_t bytestozero
Definition jpegint.h:378
b
long b
Definition jpegint.h:371
dest_row
int JSAMPARRAY int dest_row
Definition jpegint.h:374
JBLOCKROW
JBLOCK FAR * JBLOCKROW
Definition jpeglib.h:71
JPP
#define JPP(arglist)
Definition jpeglib.h:818
datalen
int const JOCTET unsigned int datalen
Definition jpeglib.h:951
JSAMPIMAGE
JSAMPARRAY * JSAMPIMAGE
Definition jpeglib.h:68
marker
int marker
Definition jpeglib.h:950
JCOEFPTR
JCOEF FAR * JCOEFPTR
Definition jpeglib.h:75
val
int val
Definition jpeglib.h:956
JSAMPARRAY
JSAMPROW * JSAMPARRAY
Definition jpeglib.h:67
jdiv_round_up
jdiv_round_up(long a, long b)
Definition jutils.cpp:72
jcopy_block_row
jcopy_block_row(JBLOCKROW input_row, JBLOCKROW output_row, JDIMENSION num_blocks)
Definition jutils.cpp:145
jround_up
jround_up(long a, long b)
Definition jutils.cpp:81
jzero_far
jzero_far(void FAR *target, size_t bytestozero)
Definition jutils.cpp:165
jcopy_sample_rows
jcopy_sample_rows(JSAMPARRAY input_array, int source_row, JSAMPARRAY output_array, int dest_row, int num_rows, JDIMENSION num_cols)
Definition jutils.cpp:111
jpeg_c_coef_controller
Definition jpegint.h:76
jpeg_c_coef_controller::JMETHOD
JMETHOD(boolean, compress_data,(j_compress_ptr cinfo, JSAMPIMAGE input_buf))
jpeg_c_coef_controller::JMETHOD
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
jpeg_c_main_controller
Definition jpegint.h:56
jpeg_c_main_controller::JMETHOD
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
jpeg_c_main_controller::JMETHOD
JMETHOD(void, process_data,(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail))
jpeg_c_prep_controller
Definition jpegint.h:64
jpeg_c_prep_controller::JMETHOD
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))
jpeg_c_prep_controller::JMETHOD
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
jpeg_color_converter
Definition jpegint.h:83
jpeg_color_converter::JMETHOD
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
jpeg_color_converter::JMETHOD
JMETHOD(void, color_convert,(j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows))
jpeg_color_deconverter
Definition jpegint.h:246
jpeg_color_deconverter::JMETHOD
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
jpeg_color_deconverter::JMETHOD
JMETHOD(void, color_convert,(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows))
jpeg_color_quantizer
Definition jpegint.h:254
jpeg_color_quantizer::JMETHOD
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, boolean is_pre_scan))
jpeg_color_quantizer::JMETHOD
JMETHOD(void, new_color_map,(j_decompress_ptr cinfo))
jpeg_color_quantizer::JMETHOD
JMETHOD(void, finish_pass,(j_decompress_ptr cinfo))
jpeg_color_quantizer::JMETHOD
JMETHOD(void, color_quantize,(j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows))
jpeg_common_struct
Definition jpeglib.h:253
jpeg_comp_master
Definition jpegint.h:45
jpeg_comp_master::call_pass_startup
boolean call_pass_startup
Definition jpegint.h:51
jpeg_comp_master::JMETHOD
JMETHOD(void, finish_pass,(j_compress_ptr cinfo))
jpeg_comp_master::is_last_pass
boolean is_last_pass
Definition jpegint.h:52
jpeg_comp_master::JMETHOD
JMETHOD(void, pass_startup,(j_compress_ptr cinfo))
jpeg_comp_master::JMETHOD
JMETHOD(void, prepare_for_pass,(j_compress_ptr cinfo))
jpeg_component_info
Definition jpeglib.h:116
jpeg_compress_struct
Definition jpeglib.h:268
jpeg_d_coef_controller
Definition jpegint.h:166
jpeg_d_coef_controller::JMETHOD
JMETHOD(int, consume_data,(j_decompress_ptr cinfo))
jpeg_d_coef_controller::JMETHOD
JMETHOD(int, decompress_data,(j_decompress_ptr cinfo, JSAMPIMAGE output_buf))
jpeg_d_coef_controller::coef_arrays
jvirt_barray_ptr * coef_arrays
Definition jpegint.h:173
jpeg_d_coef_controller::JMETHOD
JMETHOD(void, start_input_pass,(j_decompress_ptr cinfo))
jpeg_d_coef_controller::JMETHOD
JMETHOD(void, start_output_pass,(j_decompress_ptr cinfo))
jpeg_d_main_controller
Definition jpegint.h:158
jpeg_d_main_controller::JMETHOD
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
jpeg_d_main_controller::JMETHOD
JMETHOD(void, process_data,(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
jpeg_d_post_controller
Definition jpegint.h:177
jpeg_d_post_controller::JMETHOD
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
jpeg_d_post_controller::JMETHOD
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))
jpeg_decomp_master
Definition jpegint.h:137
jpeg_decomp_master::JMETHOD
JMETHOD(void, finish_output_pass,(j_decompress_ptr cinfo))
jpeg_decomp_master::is_dummy_pass
boolean is_dummy_pass
Definition jpegint.h:142
jpeg_decomp_master::JMETHOD
JMETHOD(void, prepare_for_output_pass,(j_decompress_ptr cinfo))
jpeg_decompress_struct
Definition jpeglib.h:411
jpeg_downsampler
Definition jpegint.h:91
jpeg_downsampler::JMETHOD
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
jpeg_downsampler::JMETHOD
JMETHOD(void, downsample,(j_compress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION in_row_index, JSAMPIMAGE output_buf, JDIMENSION out_row_group_index))
jpeg_downsampler::need_context_rows
boolean need_context_rows
Definition jpegint.h:98
jpeg_entropy_decoder
Definition jpegint.h:209
jpeg_entropy_decoder::JMETHOD
JMETHOD(boolean, decode_mcu,(j_decompress_ptr cinfo, JBLOCKROW *MCU_data))
jpeg_entropy_decoder::JMETHOD
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
jpeg_entropy_decoder::insufficient_data
boolean insufficient_data
Definition jpegint.h:216
jpeg_entropy_encoder
Definition jpegint.h:113
jpeg_entropy_encoder::JMETHOD
JMETHOD(void, finish_pass,(j_compress_ptr cinfo))
jpeg_entropy_encoder::JMETHOD
JMETHOD(boolean, encode_mcu,(j_compress_ptr cinfo, JBLOCKROW *MCU_data))
jpeg_entropy_encoder::JMETHOD
JMETHOD(void, start_pass,(j_compress_ptr cinfo, boolean gather_statistics))
jpeg_forward_dct
Definition jpegint.h:102
jpeg_forward_dct::JMETHOD
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
jpeg_forward_dct::JMETHOD
JMETHOD(void, forward_DCT,(j_compress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY sample_data, JBLOCKROW coef_blocks, JDIMENSION start_row, JDIMENSION start_col, JDIMENSION num_blocks))
jpeg_input_controller
Definition jpegint.h:146
jpeg_input_controller::has_multiple_scans
boolean has_multiple_scans
Definition jpegint.h:153
jpeg_input_controller::JMETHOD
JMETHOD(void, finish_input_pass,(j_decompress_ptr cinfo))
jpeg_input_controller::eoi_reached
boolean eoi_reached
Definition jpegint.h:154
jpeg_input_controller::JMETHOD
JMETHOD(void, reset_input_controller,(j_decompress_ptr cinfo))
jpeg_input_controller::JMETHOD
JMETHOD(void, start_input_pass,(j_decompress_ptr cinfo))
jpeg_input_controller::JMETHOD
JMETHOD(int, consume_input,(j_decompress_ptr cinfo))
jpeg_inverse_dct
Definition jpegint.h:225
jpeg_inverse_dct::JMETHOD
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
jpeg_inverse_dct::inverse_DCT
inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS]
Definition jpegint.h:228
jpeg_marker_reader
Definition jpegint.h:189
jpeg_marker_reader::saw_SOF
boolean saw_SOF
Definition jpegint.h:203
jpeg_marker_reader::read_restart_marker
jpeg_marker_parser_method read_restart_marker
Definition jpegint.h:197
jpeg_marker_reader::JMETHOD
JMETHOD(int, read_markers,(j_decompress_ptr cinfo))
jpeg_marker_reader::next_restart_num
int next_restart_num
Definition jpegint.h:204
jpeg_marker_reader::discarded_bytes
unsigned int discarded_bytes
Definition jpegint.h:205
jpeg_marker_reader::saw_SOI
boolean saw_SOI
Definition jpegint.h:202
jpeg_marker_reader::JMETHOD
JMETHOD(void, reset_marker_reader,(j_decompress_ptr cinfo))
jpeg_marker_writer
Definition jpegint.h:120
jpeg_marker_writer::JMETHOD
JMETHOD(void, write_frame_header,(j_compress_ptr cinfo))
jpeg_marker_writer::JMETHOD
JMETHOD(void, write_marker_byte,(j_compress_ptr cinfo, int val))
jpeg_marker_writer::JMETHOD
JMETHOD(void, write_scan_header,(j_compress_ptr cinfo))
jpeg_marker_writer::JMETHOD
JMETHOD(void, write_marker_header,(j_compress_ptr cinfo, int marker, unsigned int datalen))
jpeg_marker_writer::JMETHOD
JMETHOD(void, write_tables_only,(j_compress_ptr cinfo))
jpeg_marker_writer::JMETHOD
JMETHOD(void, write_file_header,(j_compress_ptr cinfo))
jpeg_marker_writer::JMETHOD
JMETHOD(void, write_file_trailer,(j_compress_ptr cinfo))
jpeg_upsampler
Definition jpegint.h:232
jpeg_upsampler::JMETHOD
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
jpeg_upsampler::JMETHOD
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))
jpeg_upsampler::need_context_rows
boolean need_context_rows
Definition jpegint.h:242
jvirt_barray_control
Definition jmemmgr.cpp:166
jvirt_sarray_control
Definition jmemmgr.cpp:150