Main MRPT website > C++ reference for MRPT 1.9.9
mrpt_jpeglib.h
Go to the documentation of this file.
1 /* +------------------------------------------------------------------------+
2  | Mobile Robot Programming Toolkit (MRPT) |
3  | http://www.mrpt.org/ |
4  | |
5  | Copyright (c) 2005-2018, Individual contributors, see AUTHORS file |
6  | See: http://www.mrpt.org/Authors - All rights reserved. |
7  | Released under BSD License. See details in http://www.mrpt.org/License |
8  +------------------------------------------------------------------------+ */
9 
10 #ifndef JPEGLIB_H
11 #define JPEGLIB_H
12 
13 /*
14  * First we include the configuration files that record how this
15  * installation of the JPEG library is set up. mrpt_jconfig.h can be
16  * generated automatically for many systems. jmorecfg.h contains
17  * manual configuration options that most people need not worry about.
18  */
19 
20 #ifndef JCONFIG_INCLUDED /* in case jinclude.h already did */
21 #include "mrpt_jconfig.h" /* widely used configuration options */
22 #endif
23 #include "jmorecfg.h" /* seldom changed options */
24 
25 /* Version ID for the JPEG library.
26  * Might be useful for tests like "#if JPEG_LIB_VERSION >= 60".
27  */
28 
29 #define JPEG_LIB_VERSION 62 /* Version 6b */
30 
31 /* Various constants determining the sizes of things.
32  * All of these are specified by the JPEG standard, so don't change them
33  * if you want to be compatible.
34  */
35 
36 #define DCTSIZE 8 /* The basic DCT block is 8x8 samples */
37 #define DCTSIZE2 64 /* DCTSIZE squared; # of elements in a block */
38 #define NUM_QUANT_TBLS 4 /* Quantization tables are numbered 0..3 */
39 #define NUM_HUFF_TBLS 4 /* Huffman tables are numbered 0..3 */
40 #define NUM_ARITH_TBLS 16 /* Arith-coding tables are numbered 0..15 */
41 #define MAX_COMPS_IN_SCAN 4 /* JPEG limit on # of components in one scan */
42 #define MAX_SAMP_FACTOR 4 /* JPEG limit on sampling factors */
43 /* Unfortunately, some bozo at Adobe saw no reason to be bound by the standard;
44  * the PostScript DCT filter can emit files with many more than 10 blocks/MCU.
45  * If you happen to run across such a file, you can up D_MAX_BLOCKS_IN_MCU
46  * to handle it. We even let you do this from the mrpt_jconfig.h file. However,
47  * we strongly discourage changing C_MAX_BLOCKS_IN_MCU; just because Adobe
48  * sometimes emits noncompliant files doesn't mean you should too.
49  */
50 #define C_MAX_BLOCKS_IN_MCU 10 /* compressor's limit on blocks per MCU */
51 #ifndef D_MAX_BLOCKS_IN_MCU
52 #define D_MAX_BLOCKS_IN_MCU 10 /* decompressor's limit on blocks per MCU */
53 #endif
54 
55 /* Data structures for images (arrays of samples and of DCT coefficients).
56  * On 80x86 machines, the image arrays are too big for near pointers,
57  * but the pointer arrays can fit in near memory.
58  */
59 
60 typedef JSAMPLE FAR* JSAMPROW; /* ptr to one image row of pixel samples. */
61 typedef JSAMPROW* JSAMPARRAY; /* ptr to some rows (a 2-D sample array) */
62 typedef JSAMPARRAY* JSAMPIMAGE; /* a 3-D sample array: top index is color */
63 
64 typedef JCOEF JBLOCK[DCTSIZE2]; /* one block of coefficients */
65 typedef JBLOCK FAR* JBLOCKROW; /* pointer to one row of coefficient blocks */
66 typedef JBLOCKROW* JBLOCKARRAY; /* a 2-D array of coefficient blocks */
67 typedef JBLOCKARRAY* JBLOCKIMAGE; /* a 3-D array of coefficient blocks */
68 
69 typedef JCOEF FAR* JCOEFPTR; /* useful in a couple of places */
70 
71 /* Types for JPEG compression parameters and working tables. */
72 
73 /* DCT coefficient quantization tables. */
74 
75 typedef struct
76 {
77  /* This array gives the coefficient quantizers in natural array order
78  * (not the zigzag order in which they are stored in a JPEG DQT marker).
79  * CAUTION: IJG versions prior to v6a kept this array in zigzag order.
80  */
81  UINT16 quantval[DCTSIZE2]; /* quantization step for each coefficient */
82  /* This field is used only during compression. It's initialized FALSE when
83  * the table is created, and set TRUE when it's been output to the file.
84  * You could suppress output of a table by setting this to TRUE.
85  * (See jpeg_suppress_tables for an example.)
86  */
87  boolean sent_table; /* TRUE when table has been output */
88 } JQUANT_TBL;
89 
90 /* Huffman coding tables. */
91 
92 typedef struct
93 {
94  /* These two fields directly represent the contents of a JPEG DHT marker */
95  UINT8 bits[17]; /* bits[k] = # of symbols with codes of */
96  /* length k bits; bits[0] is unused */
97  UINT8 huffval[256]; /* The symbols, in order of incr code length */
98  /* This field is used only during compression. It's initialized FALSE when
99  * the table is created, and set TRUE when it's been output to the file.
100  * You could suppress output of a table by setting this to TRUE.
101  * (See jpeg_suppress_tables for an example.)
102  */
103  boolean sent_table; /* TRUE when table has been output */
104 } JHUFF_TBL;
105 
106 /* Basic info about one component (color channel). */
107 
108 typedef struct
109 {
110  /* These values are fixed over the whole image. */
111  /* For compression, they must be supplied by parameter setup; */
112  /* for decompression, they are read from the SOF marker. */
113  int component_id; /* identifier for this component (0..255) */
114  int component_index; /* its index in SOF or cinfo->comp_info[] */
115  int h_samp_factor; /* horizontal sampling factor (1..4) */
116  int v_samp_factor; /* vertical sampling factor (1..4) */
117  int quant_tbl_no; /* quantization table selector (0..3) */
118  /* These values may vary between scans. */
119  /* For compression, they must be supplied by parameter setup; */
120  /* for decompression, they are read from the SOS marker. */
121  /* The decompressor output side may not use these variables. */
122  int dc_tbl_no; /* DC entropy table selector (0..3) */
123  int ac_tbl_no; /* AC entropy table selector (0..3) */
124 
125  /* Remaining fields should be treated as private by applications. */
126 
127  /* These values are computed during compression or decompression startup: */
128  /* Component's size in DCT blocks.
129  * Any dummy blocks added to complete an MCU are not counted; therefore
130  * these values do not depend on whether a scan is interleaved or not.
131  */
132  JDIMENSION width_in_blocks;
133  JDIMENSION height_in_blocks;
134  /* Size of a DCT block in samples. Always DCTSIZE for compression.
135  * For decompression this is the size of the output from one DCT block,
136  * reflecting any scaling we choose to apply during the IDCT step.
137  * Values of 1,2,4,8 are likely to be supported. Note that different
138  * components may receive different IDCT scalings.
139  */
141  /* The downsampled dimensions are the component's actual, unpadded number
142  * of samples at the main buffer (preprocessing/compression interface), thus
143  * downsampled_width = ceil(image_width * Hi/Hmax)
144  * and similarly for height. For decompression, IDCT scaling is included,
145  * so
146  * downsampled_width = ceil(image_width * Hi/Hmax * DCT_scaled_size/DCTSIZE)
147  */
148  JDIMENSION downsampled_width; /* actual width in samples */
149  JDIMENSION downsampled_height; /* actual height in samples */
150  /* This flag is used only for decompression. In cases where some of the
151  * components will be ignored (eg grayscale output from YCbCr image),
152  * we can skip most computations for the unused components.
153  */
154  boolean component_needed; /* do we need the value of this component? */
155 
156  /* These values are computed before starting a scan of the component. */
157  /* The decompressor output side may not use these variables. */
158  int MCU_width; /* number of blocks per MCU, horizontally */
159  int MCU_height; /* number of blocks per MCU, vertically */
160  int MCU_blocks; /* MCU_width * MCU_height */
161  int MCU_sample_width; /* MCU width in samples, MCU_width*DCT_scaled_size */
162  int last_col_width; /* # of non-dummy blocks across in last MCU */
163  int last_row_height; /* # of non-dummy blocks down in last MCU */
164 
165  /* Saved quantization table for component; nullptr if none yet saved.
166  * See jdinput.c comments about the need for this information.
167  * This field is currently used only for decompression.
168  */
170 
171  /* Private per-component storage for DCT or IDCT subsystem. */
172  void* dct_table;
174 
175 /* The script for encoding a multiple-scan file is an array of these: */
176 
177 typedef struct
178 {
179  int comps_in_scan; /* number of components encoded in this scan */
180  int component_index[MAX_COMPS_IN_SCAN]; /* their SOF/comp_info[] indexes */
181  int Ss, Se; /* progressive JPEG spectral selection parms */
182  int Ah, Al; /* progressive JPEG successive approx. parms */
184 
185 /* The decompressor can save APPn and COM markers in a list of these: */
186 
188 
190 {
191  jpeg_saved_marker_ptr next; /* next in list, or nullptr */
192  UINT8 marker; /* marker code: JPEG_COM, or JPEG_APP0+n */
193  unsigned int original_length; /* # bytes of data in the file */
194  unsigned int data_length; /* # bytes of data saved at data[] */
195  JOCTET FAR* data; /* the data contained in the marker */
196  /* the marker length word is not counted in data_length or original_length
197  */
198 };
199 
200 /* Known color spaces. */
201 
202 typedef enum {
203  JCS_UNKNOWN, /* error/unspecified */
204  JCS_GRAYSCALE, /* monochrome */
205  JCS_RGB, /* red/green/blue */
206  JCS_YCbCr, /* Y/Cb/Cr (also known as YUV) */
207  JCS_CMYK, /* C/M/Y/K */
208  JCS_YCCK /* Y/Cb/Cr/K */
209 } J_COLOR_SPACE;
210 
211 /* DCT/IDCT algorithm options. */
212 
213 typedef enum {
214  JDCT_ISLOW, /* slow but accurate integer algorithm */
215  JDCT_IFAST, /* faster, less accurate integer method */
216  JDCT_FLOAT /* floating-point: accurate, fast on fast HW */
217 } J_DCT_METHOD;
218 
219 #ifndef JDCT_DEFAULT /* may be overridden in mrpt_jconfig.h */
220 #define JDCT_DEFAULT JDCT_ISLOW
221 #endif
222 #ifndef JDCT_FASTEST /* may be overridden in mrpt_jconfig.h */
223 #define JDCT_FASTEST JDCT_IFAST
224 #endif
225 
226 /* Dithering options for decompression. */
227 
228 typedef enum {
229  JDITHER_NONE, /* no dithering */
230  JDITHER_ORDERED, /* simple ordered dither */
231  JDITHER_FS /* Floyd-Steinberg error diffusion dither */
232 } J_DITHER_MODE;
233 
234 /* Common fields between JPEG compression and decompression master structs. */
235 
236 #define jpeg_common_fields \
237  struct jpeg_error_mgr* err; /* Error handler module */ \
238  struct jpeg_memory_mgr* mem; /* Memory manager module */ \
239  struct jpeg_progress_mgr* \
240  progress; /* Progress monitor, or nullptr if none */ \
241  void* client_data; /* Available for use by application */ \
242  boolean is_decompressor; /* So common code can tell which is which */ \
243  int global_state /* For checking call sequence validity */
244 
245 /* Routines that are to be used by both halves of the library are declared
246  * to receive a pointer to this structure. There are no actual instances of
247  * jpeg_common_struct, only of jpeg_compress_struct and jpeg_decompress_struct.
248  */
250 {
251  jpeg_common_fields; /* Fields common to both master struct types */
252  /* Additional fields follow in an actual jpeg_compress_struct or
253  * jpeg_decompress_struct. All three structs must agree on these
254  * initial fields! (This would be a lot cleaner in C++.)
255  */
256 };
257 
261 
262 /* Master record for a compression instance */
263 
265 {
266  jpeg_common_fields; /* Fields shared with jpeg_decompress_struct */
267 
268  /* Destination for compressed data */
270 
271  /* Description of source image --- these fields must be filled in by
272  * outer application before starting compression. in_color_space must
273  * be correct before you can even call jpeg_set_defaults().
274  */
275 
276  JDIMENSION image_width; /* input image width */
277  JDIMENSION image_height; /* input image height */
278  int input_components; /* # of color components in input image */
279  J_COLOR_SPACE in_color_space; /* colorspace of input image */
280 
281  double input_gamma; /* image gamma of input image */
282 
283  /* Compression parameters --- these fields must be set before calling
284  * jpeg_start_compress(). We recommend calling jpeg_set_defaults() to
285  * initialize everything to reasonable defaults, then changing anything
286  * the application specifically wants to change. That way you won't get
287  * burnt when new parameters are added. Also note that there are several
288  * helper routines to simplify changing parameters.
289  */
290 
291  int data_precision; /* bits of precision in image data */
292 
293  int num_components; /* # of color components in JPEG image */
294  J_COLOR_SPACE jpeg_color_space; /* colorspace of JPEG image */
295 
297  /* comp_info[i] describes component that appears i'th in SOF */
298 
300  /* ptrs to coefficient quantization tables, or nullptr if not defined */
301 
304  /* ptrs to Huffman coding tables, or nullptr if not defined */
305 
306  UINT8 arith_dc_L[NUM_ARITH_TBLS]; /* L values for DC arith-coding tables */
307  UINT8 arith_dc_U[NUM_ARITH_TBLS]; /* U values for DC arith-coding tables */
308  UINT8 arith_ac_K[NUM_ARITH_TBLS]; /* Kx values for AC arith-coding tables */
309 
310  int num_scans; /* # of entries in scan_info array */
311  const jpeg_scan_info*
312  scan_info; /* script for multi-scan file, or nullptr */
313  /* The default value of scan_info is nullptr, which causes a single-scan
314  * sequential JPEG file to be emitted. To create a multi-scan file,
315  * set num_scans and scan_info to point to an array of scan definitions.
316  */
317 
318  boolean raw_data_in; /* TRUE=caller supplies downsampled data */
319  boolean arith_code; /* TRUE=arithmetic coding, FALSE=Huffman */
320  boolean optimize_coding; /* TRUE=optimize entropy encoding parms */
321  boolean CCIR601_sampling; /* TRUE=first samples are cosited */
322  int smoothing_factor; /* 1..100, or 0 for no input smoothing */
323  J_DCT_METHOD dct_method; /* DCT algorithm selector */
324 
325  /* The restart interval can be specified in absolute MCUs by setting
326  * restart_interval, or in MCU rows by setting restart_in_rows
327  * (in which case the correct restart_interval will be figured
328  * for each scan).
329  */
330  unsigned int restart_interval; /* MCUs per restart, or 0 for no restart */
331  int restart_in_rows; /* if > 0, MCU rows per restart interval */
332 
333  /* Parameters controlling emission of special markers. */
334 
335  boolean write_JFIF_header; /* should a JFIF marker be written? */
336  UINT8 JFIF_major_version; /* What to write for the JFIF version number */
338  /* These three values are not used by the JPEG code, merely copied */
339  /* into the JFIF APP0 marker. density_unit can be 0 for unknown, */
340  /* 1 for dots/inch, or 2 for dots/cm. Note that the pixel aspect */
341  /* ratio is defined by X_density/Y_density even when density_unit=0. */
342  UINT8 density_unit; /* JFIF code for pixel size units */
343  UINT16 X_density; /* Horizontal pixel density */
344  UINT16 Y_density; /* Vertical pixel density */
345  boolean write_Adobe_marker; /* should an Adobe marker be written? */
346 
347  /* State variable: index of next scanline to be written to
348  * jpeg_write_scanlines(). Application may use this to control its
349  * processing loop, e.g., "while (next_scanline < image_height)".
350  */
351 
352  JDIMENSION next_scanline; /* 0 .. image_height-1 */
353 
354  /* Remaining fields are known throughout compressor, but generally
355  * should not be touched by a surrounding application.
356  */
357 
358  /*
359  * These fields are computed during compression startup
360  */
361  boolean progressive_mode; /* TRUE if scan script uses progressive mode */
362  int max_h_samp_factor; /* largest h_samp_factor */
363  int max_v_samp_factor; /* largest v_samp_factor */
364 
365  JDIMENSION total_iMCU_rows; /* # of iMCU rows to be input to coef ctlr */
366  /* The coefficient controller receives data in units of MCU rows as defined
367  * for fully interleaved scans (whether the JPEG file is interleaved or
368  * not).
369  * There are v_samp_factor * DCTSIZE sample rows of each component in an
370  * "iMCU" (interleaved MCU) row.
371  */
372 
373  /*
374  * These fields are valid during any one scan.
375  * They describe the components and MCUs actually appearing in the scan.
376  */
377  int comps_in_scan; /* # of JPEG components in this scan */
379  /* *cur_comp_info[i] describes component that appears i'th in SOS */
380 
381  JDIMENSION MCUs_per_row; /* # of MCUs across the image */
382  JDIMENSION MCU_rows_in_scan; /* # of MCU rows in the image */
383 
384  int blocks_in_MCU; /* # of DCT blocks per MCU */
386  /* MCU_membership[i] is index in cur_comp_info of component owning */
387  /* i'th block in an MCU */
388 
389  int Ss, Se, Ah, Al; /* progressive JPEG parameters for scan */
390 
391  /*
392  * Links to compression subobjects (methods and private variables of
393  * modules)
394  */
395  struct jpeg_comp_master* master;
396  struct jpeg_c_main_controller* main;
397  struct jpeg_c_prep_controller* prep;
398  struct jpeg_c_coef_controller* coef;
399  struct jpeg_marker_writer* marker;
400  struct jpeg_color_converter* cconvert;
401  struct jpeg_downsampler* downsample;
402  struct jpeg_forward_dct* fdct;
403  struct jpeg_entropy_encoder* entropy;
404  jpeg_scan_info* script_space; /* workspace for jpeg_simple_progression */
406 };
407 
408 /* Master record for a decompression instance */
409 
411 {
412  jpeg_common_fields; /* Fields shared with jpeg_compress_struct */
413 
414  /* Source of compressed data */
416 
417  /* Basic description of image --- filled in by jpeg_read_header(). */
418  /* Application may inspect these values to decide how to process image. */
419 
420  JDIMENSION image_width; /* nominal image width (from SOF marker) */
421  JDIMENSION image_height; /* nominal image height */
422  int num_components; /* # of color components in JPEG image */
423  J_COLOR_SPACE jpeg_color_space; /* colorspace of JPEG image */
424 
425  /* Decompression processing parameters --- these fields must be set before
426  * calling jpeg_start_decompress(). Note that jpeg_read_header()
427  * initializes
428  * them to default values.
429  */
430 
431  J_COLOR_SPACE out_color_space; /* colorspace for output */
432 
433  unsigned int scale_num, scale_denom; /* fraction by which to scale image */
434 
435  double output_gamma; /* image gamma wanted in output */
436 
437  boolean buffered_image; /* TRUE=multiple output passes */
438  boolean raw_data_out; /* TRUE=downsampled data wanted */
439 
440  J_DCT_METHOD dct_method; /* IDCT algorithm selector */
441  boolean do_fancy_upsampling; /* TRUE=apply fancy upsampling */
442  boolean do_block_smoothing; /* TRUE=apply interblock smoothing */
443 
444  boolean quantize_colors; /* TRUE=colormapped output wanted */
445  /* the following are ignored if not quantize_colors: */
446  J_DITHER_MODE dither_mode; /* type of color dithering to use */
447  boolean two_pass_quantize; /* TRUE=use two-pass color quantization */
448  int desired_number_of_colors; /* max # colors to use in created colormap */
449  /* these are significant only in buffered-image mode: */
450  boolean enable_1pass_quant; /* enable future use of 1-pass quantizer */
451  boolean enable_external_quant; /* enable future use of external colormap */
452  boolean enable_2pass_quant; /* enable future use of 2-pass quantizer */
453 
454  /* Description of actual output image that will be returned to application.
455  * These fields are computed by jpeg_start_decompress().
456  * You can also use jpeg_calc_output_dimensions() to determine these values
457  * in advance of calling jpeg_start_decompress().
458  */
459 
460  JDIMENSION output_width; /* scaled image width */
461  JDIMENSION output_height; /* scaled image height */
462  int out_color_components; /* # of color components in out_color_space */
463  int output_components; /* # of color components returned */
464  /* output_components is 1 (a colormap index) when quantizing colors;
465  * otherwise it equals out_color_components.
466  */
467  int rec_outbuf_height; /* min recommended height of scanline buffer */
468  /* If the buffer passed to jpeg_read_scanlines() is less than this many rows
469  * high, space and time will be wasted due to unnecessary data copying.
470  * Usually rec_outbuf_height will be 1 or 2, at most 4.
471  */
472 
473  /* When quantizing colors, the output colormap is described by these fields.
474  * The application can supply a colormap by setting colormap non-NULL before
475  * calling jpeg_start_decompress; otherwise a colormap is created during
476  * jpeg_start_decompress or jpeg_start_output.
477  * The map has out_color_components rows and actual_number_of_colors
478  * columns.
479  */
480  int actual_number_of_colors; /* number of entries in use */
481  JSAMPARRAY colormap; /* The color map as a 2-D pixel array */
482 
483  /* State variables: these variables indicate the progress of decompression.
484  * The application may examine these but must not modify them.
485  */
486 
487  /* Row index of next scanline to be read from jpeg_read_scanlines().
488  * Application may use this to control its processing loop, e.g.,
489  * "while (output_scanline < output_height)".
490  */
491  JDIMENSION output_scanline; /* 0 .. output_height-1 */
492 
493  /* Current input scan number and number of iMCU rows completed in scan.
494  * These indicate the progress of the decompressor input side.
495  */
496  int input_scan_number; /* Number of SOS markers seen so far */
497  JDIMENSION input_iMCU_row; /* Number of iMCU rows completed */
498 
499  /* The "output scan number" is the notional scan being displayed by the
500  * output side. The decompressor will not allow output scan/row number
501  * to get ahead of input scan/row, but it can fall arbitrarily far behind.
502  */
503  int output_scan_number; /* Nominal scan number being displayed */
504  JDIMENSION output_iMCU_row; /* Number of iMCU rows read */
505 
506  /* Current progression status. coef_bits[c][i] indicates the precision
507  * with which component c's DCT coefficient i (in zigzag order) is known.
508  * It is -1 when no data has yet been received, otherwise it is the point
509  * transform (shift) value for the most recent scan of the coefficient
510  * (thus, 0 at completion of the progression).
511  * This pointer is nullptr when reading a non-progressive file.
512  */
513  int (*coef_bits)[DCTSIZE2]; /* -1 or current Al value for each coef */
514 
515  /* Internal JPEG parameters --- the application usually need not look at
516  * these fields. Note that the decompressor output side may not use
517  * any parameters that can change between scans.
518  */
519 
520  /* Quantization and Huffman tables are carried forward across input
521  * datastreams when processing abbreviated JPEG datastreams.
522  */
523 
525  /* ptrs to coefficient quantization tables, or nullptr if not defined */
526 
529  /* ptrs to Huffman coding tables, or nullptr if not defined */
530 
531  /* These parameters are never carried across datastreams, since they
532  * are given in SOF/SOS markers or defined to be reset by SOI.
533  */
534 
535  int data_precision; /* bits of precision in image data */
536 
538  /* comp_info[i] describes component that appears i'th in SOF */
539 
540  boolean progressive_mode; /* TRUE if SOFn specifies progressive mode */
541  boolean arith_code; /* TRUE=arithmetic coding, FALSE=Huffman */
542 
543  UINT8 arith_dc_L[NUM_ARITH_TBLS]; /* L values for DC arith-coding tables */
544  UINT8 arith_dc_U[NUM_ARITH_TBLS]; /* U values for DC arith-coding tables */
545  UINT8 arith_ac_K[NUM_ARITH_TBLS]; /* Kx values for AC arith-coding tables */
546 
547  unsigned int
548  restart_interval; /* MCUs per restart interval, or 0 for no restart */
549 
550  /* These fields record data obtained from optional markers recognized by
551  * the JPEG library.
552  */
553  boolean saw_JFIF_marker; /* TRUE iff a JFIF APP0 marker was found */
554  /* Data copied from JFIF marker; only valid if saw_JFIF_marker is TRUE: */
555  UINT8 JFIF_major_version; /* JFIF version number */
557  UINT8 density_unit; /* JFIF code for pixel size units */
558  UINT16 X_density; /* Horizontal pixel density */
559  UINT16 Y_density; /* Vertical pixel density */
560  boolean saw_Adobe_marker; /* TRUE iff an Adobe APP14 marker was found */
561  UINT8 Adobe_transform; /* Color transform code from Adobe marker */
562 
563  boolean CCIR601_sampling; /* TRUE=first samples are cosited */
564 
565  /* Aside from the specific data retained from APPn markers known to the
566  * library, the uninterpreted contents of any or all APPn and COM markers
567  * can be saved in a list for examination by the application.
568  */
569  jpeg_saved_marker_ptr marker_list; /* Head of list of saved markers */
570 
571  /* Remaining fields are known throughout decompressor, but generally
572  * should not be touched by a surrounding application.
573  */
574 
575  /*
576  * These fields are computed during decompression startup
577  */
578  int max_h_samp_factor; /* largest h_samp_factor */
579  int max_v_samp_factor; /* largest v_samp_factor */
580 
581  int min_DCT_scaled_size; /* smallest DCT_scaled_size of any component */
582 
583  JDIMENSION total_iMCU_rows; /* # of iMCU rows in image */
584  /* The coefficient controller's input and output progress is measured in
585  * units of "iMCU" (interleaved MCU) rows. These are the same as MCU rows
586  * in fully interleaved JPEG scans, but are used whether the scan is
587  * interleaved or not. We define an iMCU row as v_samp_factor DCT block
588  * rows of each component. Therefore, the IDCT output contains
589  * v_samp_factor*DCT_scaled_size sample rows of a component per iMCU row.
590  */
591 
592  JSAMPLE* sample_range_limit; /* table for fast range-limiting */
593 
594  /*
595  * These fields are valid during any one scan.
596  * They describe the components and MCUs actually appearing in the scan.
597  * Note that the decompressor output side must not use these fields.
598  */
599  int comps_in_scan; /* # of JPEG components in this scan */
601  /* *cur_comp_info[i] describes component that appears i'th in SOS */
602 
603  JDIMENSION MCUs_per_row; /* # of MCUs across the image */
604  JDIMENSION MCU_rows_in_scan; /* # of MCU rows in the image */
605 
606  int blocks_in_MCU; /* # of DCT blocks per MCU */
608  /* MCU_membership[i] is index in cur_comp_info of component owning */
609  /* i'th block in an MCU */
610 
611  int Ss, Se, Ah, Al; /* progressive JPEG parameters for scan */
612 
613  /* This field is shared between entropy decoder and marker parser.
614  * It is either zero or the code of a JPEG marker that has been
615  * read from the data source, but has not yet been processed.
616  */
618 
619  /*
620  * Links to decompression subobjects (methods, private variables of modules)
621  */
622  struct jpeg_decomp_master* master;
623  struct jpeg_d_main_controller* main;
624  struct jpeg_d_coef_controller* coef;
625  struct jpeg_d_post_controller* post;
626  struct jpeg_input_controller* inputctl;
627  struct jpeg_marker_reader* marker;
628  struct jpeg_entropy_decoder* entropy;
629  struct jpeg_inverse_dct* idct;
630  struct jpeg_upsampler* upsample;
631  struct jpeg_color_deconverter* cconvert;
632  struct jpeg_color_quantizer* cquantize;
633 };
634 
635 /* "Object" declarations for JPEG modules that may be supplied or called
636  * directly by the surrounding application.
637  * As with all objects in the JPEG library, these structs only define the
638  * publicly visible methods and state variables of a module. Additional
639  * private fields may exist after the public ones.
640  */
641 
642 /* Error handler object */
643 
645 {
646  /* Error exit handler: does not return to caller */
647  JMETHOD(void, error_exit, (j_common_ptr cinfo));
648  /* Conditionally emit a trace or warning message */
649  JMETHOD(void, emit_message, (j_common_ptr cinfo, int msg_level));
650  /* Routine that actually outputs a trace or error message */
651  JMETHOD(void, output_message, (j_common_ptr cinfo));
652  /* Format a message string for the most recent JPEG error or message */
653  JMETHOD(void, format_message, (j_common_ptr cinfo, char* buffer));
654 #define JMSG_LENGTH_MAX 200 /* recommended size of format_message buffer */
655  /* Reset error state variables at start of a new image */
656  JMETHOD(void, reset_error_mgr, (j_common_ptr cinfo));
657 
658  /* The message ID code and any parameters are saved here.
659  * A message can have one string parameter or up to 8 int parameters.
660  */
661  int msg_code;
662 #define JMSG_STR_PARM_MAX 80
663  union {
664  int i[8];
666  } msg_parm;
667 
668  /* Standard state variables for error facility */
669 
670  int trace_level; /* max msg_level that will be displayed */
671 
672  /* For recoverable corrupt-data errors, we emit a warning message,
673  * but keep going unless emit_message chooses to abort. emit_message
674  * should count warnings in num_warnings. The surrounding application
675  * can check for bad data by seeing if num_warnings is nonzero at the
676  * end of processing.
677  */
678  long num_warnings; /* number of corrupt-data warnings */
679 
680  /* These fields point to the table(s) of error message strings.
681  * An application can change the table pointer to switch to a different
682  * message list (typically, to change the language in which errors are
683  * reported). Some applications may wish to add additional error codes
684  * that will be handled by the JPEG library error mechanism; the second
685  * table pointer is used for this purpose.
686  *
687  * First table includes all errors generated by JPEG library itself.
688  * Error code 0 is reserved for a "no such error string" message.
689  */
690  const char* const* jpeg_message_table; /* Library errors */
691  int last_jpeg_message; /* Table contains strings 0..last_jpeg_message */
692  /* Second table can be added by application (see cjpeg/djpeg for example).
693  * It contains strings numbered first_addon_message..last_addon_message.
694  */
695  const char* const* addon_message_table; /* Non-library errors */
696  int first_addon_message; /* code for first string in addon table */
697  int last_addon_message; /* code for last string in addon table */
698 };
699 
700 /* Progress monitor object */
701 
703 {
704  JMETHOD(void, progress_monitor, (j_common_ptr cinfo));
705 
706  long pass_counter; /* work units completed in this pass */
707  long pass_limit; /* total number of work units in this pass */
708  int completed_passes; /* passes completed so far */
709  int total_passes; /* total number of passes expected */
710 };
711 
712 /* Data destination object for compression */
713 
715 {
716  JOCTET* next_output_byte; /* => next byte to write in buffer */
717  size_t free_in_buffer; /* # of byte spaces remaining in buffer */
718 
719  JMETHOD(void, init_destination, (j_compress_ptr cinfo));
720  JMETHOD(boolean, empty_output_buffer, (j_compress_ptr cinfo));
721  JMETHOD(void, term_destination, (j_compress_ptr cinfo));
722 };
723 
724 /* Data source object for decompression */
725 
727 {
728  const JOCTET* next_input_byte; /* => next byte to read from buffer */
729  size_t bytes_in_buffer; /* # of bytes remaining in buffer */
730 
731  JMETHOD(void, init_source, (j_decompress_ptr cinfo));
732  JMETHOD(boolean, fill_input_buffer, (j_decompress_ptr cinfo));
733  JMETHOD(void, skip_input_data, (j_decompress_ptr cinfo, long num_bytes));
734  JMETHOD(boolean, resync_to_restart, (j_decompress_ptr cinfo, int desired));
735  JMETHOD(void, term_source, (j_decompress_ptr cinfo));
736 };
737 
738 /* Memory manager object.
739  * Allocates "small" objects (a few K total), "large" objects (tens of K),
740  * and "really big" objects (virtual arrays with backing store if needed).
741  * The memory manager does not allow individual objects to be freed; rather,
742  * each created object is assigned to a pool, and whole pools can be freed
743  * at once. This is faster and more convenient than remembering exactly what
744  * to free, especially where malloc()/free() are not too speedy.
745  * NB: alloc routines never return NULL. They exit to error_exit if not
746  * successful.
747  */
748 
749 #define JPOOL_PERMANENT 0 /* lasts until master record is destroyed */
750 #define JPOOL_IMAGE 1 /* lasts until done with image/datastream */
751 #define JPOOL_NUMPOOLS 2
752 
753 typedef struct jvirt_sarray_control* jvirt_sarray_ptr;
754 typedef struct jvirt_barray_control* jvirt_barray_ptr;
755 
757 {
758  /* Method pointers */
759  JMETHOD(
760  void*, alloc_small,
761  (j_common_ptr cinfo, int pool_id, size_t sizeofobject));
762  JMETHOD(
763  void FAR*, alloc_large,
764  (j_common_ptr cinfo, int pool_id, size_t sizeofobject));
765  JMETHOD(
766  JSAMPARRAY, alloc_sarray,
767  (j_common_ptr cinfo, int pool_id, JDIMENSION samplesperrow,
768  JDIMENSION numrows));
769  JMETHOD(
770  JBLOCKARRAY, alloc_barray,
771  (j_common_ptr cinfo, int pool_id, JDIMENSION blocksperrow,
772  JDIMENSION numrows));
773  JMETHOD(
774  jvirt_sarray_ptr, request_virt_sarray,
775  (j_common_ptr cinfo, int pool_id, boolean pre_zero,
776  JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess));
777  JMETHOD(
778  jvirt_barray_ptr, request_virt_barray,
779  (j_common_ptr cinfo, int pool_id, boolean pre_zero,
780  JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess));
781  JMETHOD(void, realize_virt_arrays, (j_common_ptr cinfo));
782  JMETHOD(
783  JSAMPARRAY, access_virt_sarray,
784  (j_common_ptr cinfo, jvirt_sarray_ptr ptr, JDIMENSION start_row,
785  JDIMENSION num_rows, boolean writable));
786  JMETHOD(
787  JBLOCKARRAY, access_virt_barray,
788  (j_common_ptr cinfo, jvirt_barray_ptr ptr, JDIMENSION start_row,
789  JDIMENSION num_rows, boolean writable));
790  JMETHOD(void, free_pool, (j_common_ptr cinfo, int pool_id));
791  JMETHOD(void, self_destruct, (j_common_ptr cinfo));
792 
793  /* Limit on memory allocation for this JPEG object. (Note that this is
794  * merely advisory, not a guaranteed maximum; it only affects the space
795  * used for virtual-array buffers.) May be changed by outer application
796  * after creating the JPEG object.
797  */
799 
800  /* Maximum allocation request accepted by alloc_large. */
802 };
803 
804 /* Routine signature for application-supplied marker processing methods.
805  * Need not pass marker code since it is stored in cinfo->unread_marker.
806  */
807 typedef JMETHOD(boolean, jpeg_marker_parser_method, (j_decompress_ptr cinfo));
808 
809 /* Declarations for routines called by application.
810  * The JPP macro hides prototype parameters from compilers that can't cope.
811  * Note JPP requires double parentheses.
812  */
813 
814 #ifdef HAVE_PROTOTYPES
815 #define JPP(arglist) arglist
816 #else
817 #define JPP(arglist) ()
818 #endif
819 
820 /* Short forms of external names for systems with brain-damaged linkers.
821  * We shorten external names to be unique in the first six letters, which
822  * is good enough for all known systems.
823  * (If your compiler itself needs names to be unique in less than 15
824  * characters, you are out of luck. Get a better compiler.)
825  */
826 
827 #ifdef NEED_SHORT_EXTERNAL_NAMES
828 #define jpeg_std_error jStdError
829 #define jpeg_CreateCompress jCreaCompress
830 #define jpeg_CreateDecompress jCreaDecompress
831 #define jpeg_destroy_compress jDestCompress
832 #define jpeg_destroy_decompress jDestDecompress
833 #define jpeg_stdio_dest jStdDest
834 #define jpeg_stdio_src jStdSrc
835 #define jpeg_set_defaults jSetDefaults
836 #define jpeg_set_colorspace jSetColorspace
837 #define jpeg_default_colorspace jDefColorspace
838 #define jpeg_set_quality jSetQuality
839 #define jpeg_set_linear_quality jSetLQuality
840 #define jpeg_add_quant_table jAddQuantTable
841 #define jpeg_quality_scaling jQualityScaling
842 #define jpeg_simple_progression jSimProgress
843 #define jpeg_suppress_tables jSuppressTables
844 #define jpeg_alloc_quant_table jAlcQTable
845 #define jpeg_alloc_huff_table jAlcHTable
846 #define jpeg_start_compress jStrtCompress
847 #define jpeg_write_scanlines jWrtScanlines
848 #define jpeg_finish_compress jFinCompress
849 #define jpeg_write_raw_data jWrtRawData
850 #define jpeg_write_marker jWrtMarker
851 #define jpeg_write_m_header jWrtMHeader
852 #define jpeg_write_m_byte jWrtMByte
853 #define jpeg_write_tables jWrtTables
854 #define jpeg_read_header jReadHeader
855 #define jpeg_start_decompress jStrtDecompress
856 #define jpeg_read_scanlines jReadScanlines
857 #define jpeg_finish_decompress jFinDecompress
858 #define jpeg_read_raw_data jReadRawData
859 #define jpeg_has_multiple_scans jHasMultScn
860 #define jpeg_start_output jStrtOutput
861 #define jpeg_finish_output jFinOutput
862 #define jpeg_input_complete jInComplete
863 #define jpeg_new_colormap jNewCMap
864 #define jpeg_consume_input jConsumeInput
865 #define jpeg_calc_output_dimensions jCalcDimensions
866 #define jpeg_save_markers jSaveMarkers
867 #define jpeg_set_marker_processor jSetMarker
868 #define jpeg_read_coefficients jReadCoefs
869 #define jpeg_write_coefficients jWrtCoefs
870 #define jpeg_copy_critical_parameters jCopyCrit
871 #define jpeg_abort_compress jAbrtCompress
872 #define jpeg_abort_decompress jAbrtDecompress
873 #define jpeg_abort jAbort
874 #define jpeg_destroy jDestroy
875 #define jpeg_resync_to_restart jResyncRestart
876 #endif /* NEED_SHORT_EXTERNAL_NAMES */
877 
878 /* Default error-management setup */
879 EXTERN(struct jpeg_error_mgr*)
880 jpeg_std_error JPP((struct jpeg_error_mgr * err));
881 
882 /* Initialization of JPEG compression objects.
883  * jpeg_create_compress() and jpeg_create_decompress() are the exported
884  * names that applications should call. These expand to calls on
885  * jpeg_CreateCompress and jpeg_CreateDecompress with additional information
886  * passed for version mismatch checking.
887  * NB: you must set up the error-manager BEFORE calling jpeg_create_xxx.
888  */
889 #define jpeg_create_compress(cinfo) \
890  jpeg_CreateCompress( \
891  (cinfo), JPEG_LIB_VERSION, \
892  (size_t)sizeof(struct jpeg_compress_struct))
893 #define jpeg_create_decompress(cinfo) \
894  jpeg_CreateDecompress( \
895  (cinfo), JPEG_LIB_VERSION, \
896  (size_t)sizeof(struct jpeg_decompress_struct))
897 EXTERN(void)
898 jpeg_CreateCompress JPP((j_compress_ptr cinfo, int version, size_t structsize));
899 EXTERN(void)
900 jpeg_CreateDecompress JPP(
901  (j_decompress_ptr cinfo, int version, size_t structsize));
902 /* Destruction of JPEG compression objects */
903 EXTERN(void) jpeg_destroy_compress JPP((j_compress_ptr cinfo));
904 EXTERN(void) jpeg_destroy_decompress JPP((j_decompress_ptr cinfo));
905 
906 /* Standard data source and destination managers: stdio streams. */
907 /* Caller is responsible for opening the file before and closing after. */
910 
911 /* Default parameter setup for compression */
912 EXTERN(void) jpeg_set_defaults JPP((j_compress_ptr cinfo));
913 /* Compression parameter setup aids */
914 EXTERN(void)
915 jpeg_set_colorspace JPP((j_compress_ptr cinfo, J_COLOR_SPACE colorspace));
916 EXTERN(void) jpeg_default_colorspace JPP((j_compress_ptr cinfo));
917 EXTERN(void)
918 jpeg_set_quality JPP(
919  (j_compress_ptr cinfo, int quality, boolean force_baseline));
920 EXTERN(void)
921 jpeg_set_linear_quality JPP(
922  (j_compress_ptr cinfo, int scale_factor, boolean force_baseline));
923 EXTERN(void)
924 jpeg_add_quant_table JPP(
925  (j_compress_ptr cinfo, int which_tbl, const unsigned int* basic_table,
926  int scale_factor, boolean force_baseline));
927 EXTERN(int) jpeg_quality_scaling JPP((int quality));
928 EXTERN(void) jpeg_simple_progression JPP((j_compress_ptr cinfo));
929 EXTERN(void) jpeg_suppress_tables JPP((j_compress_ptr cinfo, boolean suppress));
930 EXTERN(JQUANT_TBL*) jpeg_alloc_quant_table JPP((j_common_ptr cinfo));
931 EXTERN(JHUFF_TBL*) jpeg_alloc_huff_table JPP((j_common_ptr cinfo));
932 
933 /* Main entry points for compression */
934 EXTERN(void)
935 jpeg_start_compress JPP((j_compress_ptr cinfo, boolean write_all_tables));
936 EXTERN(JDIMENSION)
937 jpeg_write_scanlines JPP(
938  (j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines));
939 EXTERN(void) jpeg_finish_compress JPP((j_compress_ptr cinfo));
940 
941 /* Replaces jpeg_write_scanlines when writing raw downsampled data. */
942 EXTERN(JDIMENSION)
943 jpeg_write_raw_data JPP(
944  (j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines));
945 
946 /* Write a special marker. See libjpeg.doc concerning safe usage. */
947 EXTERN(void)
948 jpeg_write_marker JPP(
949  (j_compress_ptr cinfo, int marker, const JOCTET* dataptr,
950  unsigned int datalen));
951 /* Same, but piecemeal. */
952 EXTERN(void)
953 jpeg_write_m_header JPP(
954  (j_compress_ptr cinfo, int marker, unsigned int datalen));
955 EXTERN(void) jpeg_write_m_byte JPP((j_compress_ptr cinfo, int val));
956 
957 /* Alternate compression function: just write an abbreviated table file */
958 EXTERN(void) jpeg_write_tables JPP((j_compress_ptr cinfo));
959 
960 /* Decompression startup: read start of JPEG datastream to see what's there */
961 EXTERN(int)
962 jpeg_read_header JPP((j_decompress_ptr cinfo, boolean require_image));
963 /* Return value is one of: */
964 #define JPEG_SUSPENDED 0 /* Suspended due to lack of input data */
965 #define JPEG_HEADER_OK 1 /* Found valid image datastream */
966 #define JPEG_HEADER_TABLES_ONLY \
967  2 /* Found valid table-specs-only datastream \
968  */
969 /* If you pass require_image = TRUE (normal case), you need not check for
970  * a TABLES_ONLY return code; an abbreviated file will cause an error exit.
971  * JPEG_SUSPENDED is only possible if you use a data source module that can
972  * give a suspension return (the stdio source module doesn't).
973  */
974 
975 /* Main entry points for decompression */
976 EXTERN(boolean) jpeg_start_decompress JPP((j_decompress_ptr cinfo));
977 EXTERN(JDIMENSION)
978 jpeg_read_scanlines JPP(
979  (j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines));
980 EXTERN(boolean) jpeg_finish_decompress JPP((j_decompress_ptr cinfo));
981 
982 /* Replaces jpeg_read_scanlines when reading raw downsampled data. */
983 EXTERN(JDIMENSION)
984 jpeg_read_raw_data JPP(
985  (j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines));
986 
987 /* Additional entry points for buffered-image mode. */
988 EXTERN(boolean) jpeg_has_multiple_scans JPP((j_decompress_ptr cinfo));
989 EXTERN(boolean)
990 jpeg_start_output JPP((j_decompress_ptr cinfo, int scan_number));
991 EXTERN(boolean) jpeg_finish_output JPP((j_decompress_ptr cinfo));
992 EXTERN(boolean) jpeg_input_complete JPP((j_decompress_ptr cinfo));
993 EXTERN(void) jpeg_new_colormap JPP((j_decompress_ptr cinfo));
994 EXTERN(int) jpeg_consume_input JPP((j_decompress_ptr cinfo));
995 /* Return value is one of: */
996 /* #define JPEG_SUSPENDED 0 Suspended due to lack of input data */
997 #define JPEG_REACHED_SOS 1 /* Reached start of new scan */
998 #define JPEG_REACHED_EOI 2 /* Reached end of image */
999 #define JPEG_ROW_COMPLETED 3 /* Completed one iMCU row */
1000 #define JPEG_SCAN_COMPLETED 4 /* Completed last iMCU row of a scan */
1001 
1002 /* Precalculate output dimensions for current decompression parameters. */
1003 EXTERN(void) jpeg_calc_output_dimensions JPP((j_decompress_ptr cinfo));
1004 
1005 /* Control saving of COM and APPn markers into marker_list. */
1006 EXTERN(void)
1007 jpeg_save_markers JPP(
1008  (j_decompress_ptr cinfo, int marker_code, unsigned int length_limit));
1009 
1010 /* Install a special processing method for COM or APPn markers. */
1011 EXTERN(void)
1012 jpeg_set_marker_processor JPP(
1013  (j_decompress_ptr cinfo, int marker_code,
1014  jpeg_marker_parser_method routine));
1015 
1016 /* Read or write raw DCT coefficients --- useful for lossless transcoding. */
1017 EXTERN(jvirt_barray_ptr*) jpeg_read_coefficients JPP((j_decompress_ptr cinfo));
1018 EXTERN(void)
1019 jpeg_write_coefficients JPP(
1020  (j_compress_ptr cinfo, jvirt_barray_ptr* coef_arrays));
1021 EXTERN(void)
1022 jpeg_copy_critical_parameters JPP(
1023  (j_decompress_ptr srcinfo, j_compress_ptr dstinfo));
1024 
1025 /* If you choose to abort compression or decompression before completing
1026  * jpeg_finish_(de)compress, then you need to clean up to release memory,
1027  * temporary files, etc. You can just call jpeg_destroy_(de)compress
1028  * if you're done with the JPEG object, but if you want to clean it up and
1029  * reuse it, call this:
1030  */
1031 EXTERN(void) jpeg_abort_compress JPP((j_compress_ptr cinfo));
1032 EXTERN(void) jpeg_abort_decompress JPP((j_decompress_ptr cinfo));
1033 
1034 /* Generic versions of jpeg_abort and jpeg_destroy that work on either
1035  * flavor of JPEG object. These may be more convenient in some places.
1036  */
1037 EXTERN(void) jpeg_abort JPP((j_common_ptr cinfo));
1038 EXTERN(void) jpeg_destroy JPP((j_common_ptr cinfo));
1039 
1040 /* Default restart-marker-resync procedure for use by data source modules */
1041 EXTERN(boolean)
1042 jpeg_resync_to_restart JPP((j_decompress_ptr cinfo, int desired));
1043 
1044 /* These marker codes are exported since applications and data source modules
1045  * are likely to want to use them.
1046  */
1048 #define JPEG_RST0 0xD0 /* RST0 marker code */
1049 #define JPEG_EOI 0xD9 /* EOI marker code */
1050 #define JPEG_APP0 0xE0 /* APP0 marker code */
1051 #define JPEG_COM 0xFE /* COM marker code */
1052 
1053 /* If we have a brain-damaged compiler that emits warnings (or worse, errors)
1054  * for structure definitions that are never filled in, keep it quiet by
1055  * supplying dummy definitions for the various substructures.
1056  */
1057 
1058 #ifdef INCOMPLETE_TYPES_BROKEN
1059 #ifndef JPEG_INTERNALS /* will be defined in jpegint.h */
1060 struct jvirt_sarray_control
1061 {
1062  long dummy;
1063 };
1064 struct jvirt_barray_control
1065 {
1066  long dummy;
1067 };
1068 struct jpeg_comp_master
1069 {
1070  long dummy;
1071 };
1072 struct jpeg_c_main_controller
1073 {
1074  long dummy;
1075 };
1076 struct jpeg_c_prep_controller
1077 {
1078  long dummy;
1079 };
1080 struct jpeg_c_coef_controller
1081 {
1082  long dummy;
1083 };
1084 struct jpeg_marker_writer
1085 {
1086  long dummy;
1087 };
1088 struct jpeg_color_converter
1089 {
1090  long dummy;
1091 };
1092 struct jpeg_downsampler
1093 {
1094  long dummy;
1095 };
1096 struct jpeg_forward_dct
1097 {
1098  long dummy;
1099 };
1100 struct jpeg_entropy_encoder
1101 {
1102  long dummy;
1103 };
1104 struct jpeg_decomp_master
1105 {
1106  long dummy;
1107 };
1108 struct jpeg_d_main_controller
1109 {
1110  long dummy;
1111 };
1112 struct jpeg_d_coef_controller
1113 {
1114  long dummy;
1115 };
1116 struct jpeg_d_post_controller
1117 {
1118  long dummy;
1119 };
1120 struct jpeg_input_controller
1121 {
1122  long dummy;
1123 };
1124 struct jpeg_marker_reader
1125 {
1126  long dummy;
1127 };
1128 struct jpeg_entropy_decoder
1129 {
1130  long dummy;
1131 };
1132 struct jpeg_inverse_dct
1133 {
1134  long dummy;
1135 };
1136 struct jpeg_upsampler
1137 {
1138  long dummy;
1139 };
1140 struct jpeg_color_deconverter
1141 {
1142  long dummy;
1143 };
1144 struct jpeg_color_quantizer
1145 {
1146  long dummy;
1147 };
1148 #endif /* JPEG_INTERNALS */
1149 #endif /* INCOMPLETE_TYPES_BROKEN */
1150 
1151 /*
1152  * The JPEG library modules define JPEG_INTERNALS before including this file.
1153  * The internal structure declarations are read only when that is true.
1154  * Applications using the library should not include jpegint.h, but may wish
1155  * to include jerror.h.
1156  */
1157 
1158 #ifdef JPEG_INTERNALS
1159 #include "jpegint.h" /* fetch private declarations */
1160 #include "jerror.h" /* fetch error codes too */
1161 #endif
1162 
1163 #endif /* JPEGLIB_H */
jpeg_component_info::MCU_height
int MCU_height
Definition: mrpt_jpeglib.h:159
jpeg_compress_struct::JFIF_major_version
UINT8 JFIF_major_version
Definition: mrpt_jpeglib.h:336
JCS_YCbCr
@ JCS_YCbCr
Definition: mrpt_jpeglib.h:206
outfile
FILE * outfile
Definition: mrpt_jpeglib.h:908
jpeg_decompress_struct::dc_huff_tbl_ptrs
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
Definition: mrpt_jpeglib.h:527
jpeg_compress_struct::raw_data_in
boolean raw_data_in
Definition: mrpt_jpeglib.h:318
jpeg_common_struct::jpeg_common_fields
jpeg_common_fields
Definition: mrpt_jpeglib.h:251
jpeg_compress_struct::fdct
struct jpeg_forward_dct * fdct
Definition: mrpt_jpeglib.h:402
jpeg_decompress_struct::comps_in_scan
int comps_in_scan
Definition: mrpt_jpeglib.h:599
jvirt_sarray_ptr
struct jvirt_sarray_control * jvirt_sarray_ptr
Definition: mrpt_jpeglib.h:753
jpeg_compress_struct::prep
struct jpeg_c_prep_controller * prep
Definition: mrpt_jpeglib.h:397
jpeg_progress_mgr::total_passes
int total_passes
Definition: mrpt_jpeglib.h:709
jpeg_decompress_struct::sample_range_limit
JSAMPLE * sample_range_limit
Definition: mrpt_jpeglib.h:592
j_compress_ptr
struct jpeg_compress_struct * j_compress_ptr
Definition: mrpt_jpeglib.h:259
jpeg_decompress_struct::output_scanline
JDIMENSION output_scanline
Definition: mrpt_jpeglib.h:491
jpeg_decompress_struct::output_iMCU_row
JDIMENSION output_iMCU_row
Definition: mrpt_jpeglib.h:504
jpeg_compress_struct::comp_info
jpeg_component_info * comp_info
Definition: mrpt_jpeglib.h:296
jpeg_compress_struct::Ss
int Ss
Definition: mrpt_jpeglib.h:389
jpeg_decompress_struct::saw_Adobe_marker
boolean saw_Adobe_marker
Definition: mrpt_jpeglib.h:560
s
GLdouble s
Definition: glext.h:3676
jpeg_error_mgr::num_warnings
long num_warnings
Definition: mrpt_jpeglib.h:678
jpeg_compress_struct::image_width
JDIMENSION image_width
Definition: mrpt_jpeglib.h:276
jpeg_decompress_struct::input_scan_number
int input_scan_number
Definition: mrpt_jpeglib.h:496
jpeg_decompress_struct::actual_number_of_colors
int actual_number_of_colors
Definition: mrpt_jpeglib.h:480
JDITHER_NONE
@ JDITHER_NONE
Definition: mrpt_jpeglib.h:229
jpeg_decompress_struct::two_pass_quantize
boolean two_pass_quantize
Definition: mrpt_jpeglib.h:447
jpeg_component_info::downsampled_width
JDIMENSION downsampled_width
Definition: mrpt_jpeglib.h:148
jpeg_destination_mgr::free_in_buffer
size_t free_in_buffer
Definition: mrpt_jpeglib.h:717
jpeg_error_mgr::last_jpeg_message
int last_jpeg_message
Definition: mrpt_jpeglib.h:691
jpeg_compress_struct::image_height
JDIMENSION image_height
Definition: mrpt_jpeglib.h:277
JQUANT_TBL::sent_table
boolean sent_table
Definition: mrpt_jpeglib.h:87
jpeg_decompress_struct::saw_JFIF_marker
boolean saw_JFIF_marker
Definition: mrpt_jpeglib.h:553
jpeg_source_mgr::next_input_byte
const JOCTET * next_input_byte
Definition: mrpt_jpeglib.h:728
init_source
init_source(j_decompress_ptr cinfo)
Definition: CImage_JPEG_streams.cpp:169
JCS_RGB
@ JCS_RGB
Definition: mrpt_jpeglib.h:205
jpeg_decompress_struct::num_components
int num_components
Definition: mrpt_jpeglib.h:422
jpeg_decompress_struct::arith_dc_U
UINT8 arith_dc_U[NUM_ARITH_TBLS]
Definition: mrpt_jpeglib.h:544
jpeg_compress_struct::next_scanline
JDIMENSION next_scanline
Definition: mrpt_jpeglib.h:352
jpeg_decompress_struct::raw_data_out
boolean raw_data_out
Definition: mrpt_jpeglib.h:438
JDCT_ISLOW
@ JDCT_ISLOW
Definition: mrpt_jpeglib.h:214
jpeg_marker_struct
Definition: mrpt_jpeglib.h:189
JQUANT_TBL
Definition: mrpt_jpeglib.h:75
empty_output_buffer
empty_output_buffer(j_compress_ptr cinfo)
Definition: CImage_JPEG_streams.cpp:92
jpeg_compress_struct::cconvert
struct jpeg_color_converter * cconvert
Definition: mrpt_jpeglib.h:400
jpeg_compress_struct::num_components
int num_components
Definition: mrpt_jpeglib.h:293
jpeg_decompress_struct::coef_bits
int(* coef_bits)[DCTSIZE2]
Definition: mrpt_jpeglib.h:513
jpeg_decompress_struct::dct_method
J_DCT_METHOD dct_method
Definition: mrpt_jpeglib.h:440
jpeg_compress_struct::density_unit
UINT8 density_unit
Definition: mrpt_jpeglib.h:342
jpeg_marker_struct::marker
UINT8 marker
Definition: mrpt_jpeglib.h:192
jpeg_decompress_struct::Se
int Se
Definition: mrpt_jpeglib.h:611
jpeg_decompress_struct::src
struct jpeg_source_mgr * src
Definition: mrpt_jpeglib.h:415
jpeg_decompress_struct::image_width
JDIMENSION image_width
Definition: mrpt_jpeglib.h:420
jpeg_compress_struct::dc_huff_tbl_ptrs
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
Definition: mrpt_jpeglib.h:302
jpeg_compress_struct::blocks_in_MCU
int blocks_in_MCU
Definition: mrpt_jpeglib.h:384
jpeg_component_info::MCU_width
int MCU_width
Definition: mrpt_jpeglib.h:158
jpeg_compress_struct::entropy
struct jpeg_entropy_encoder * entropy
Definition: mrpt_jpeglib.h:403
JMSG_STR_PARM_MAX
#define JMSG_STR_PARM_MAX
Definition: mrpt_jpeglib.h:662
jpeg_compress_struct::ac_huff_tbl_ptrs
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
Definition: mrpt_jpeglib.h:303
jpeg_compress_struct::MCU_membership
int MCU_membership[C_MAX_BLOCKS_IN_MCU]
Definition: mrpt_jpeglib.h:385
jpeg_stdio_src
jpeg_stdio_src(j_decompress_ptr cinfo, CStream *in)
Definition: CImage_JPEG_streams.cpp:308
jpeg_decompress_struct::output_width
JDIMENSION output_width
Definition: mrpt_jpeglib.h:460
jpeg_compress_struct::max_h_samp_factor
int max_h_samp_factor
Definition: mrpt_jpeglib.h:362
jpeg_decompress_struct::max_h_samp_factor
int max_h_samp_factor
Definition: mrpt_jpeglib.h:578
jpeg_error_mgr
Definition: mrpt_jpeglib.h:644
jpeg_component_info::width_in_blocks
JDIMENSION width_in_blocks
Definition: mrpt_jpeglib.h:132
jpeg_scan_info::comps_in_scan
int comps_in_scan
Definition: mrpt_jpeglib.h:179
jpeg_component_info::dct_table
void * dct_table
Definition: mrpt_jpeglib.h:172
jpeg_decompress_struct::main
struct jpeg_d_main_controller * main
Definition: mrpt_jpeglib.h:623
jpeg_decompress_struct::jpeg_color_space
J_COLOR_SPACE jpeg_color_space
Definition: mrpt_jpeglib.h:423
jpeg_marker_struct::data_length
unsigned int data_length
Definition: mrpt_jpeglib.h:194
JSAMPROW
JSAMPLE FAR * JSAMPROW
Definition: mrpt_jpeglib.h:60
jpeg_error_mgr::trace_level
int trace_level
Definition: mrpt_jpeglib.h:670
jpeg_compress_struct::in_color_space
J_COLOR_SPACE in_color_space
Definition: mrpt_jpeglib.h:279
jpeg_component_info::DCT_scaled_size
int DCT_scaled_size
Definition: mrpt_jpeglib.h:140
jpeg_error_mgr::addon_message_table
const char *const * addon_message_table
Definition: mrpt_jpeglib.h:695
JDITHER_ORDERED
@ JDITHER_ORDERED
Definition: mrpt_jpeglib.h:230
jpeg_decompress_struct::blocks_in_MCU
int blocks_in_MCU
Definition: mrpt_jpeglib.h:606
jpeg_component_info::dc_tbl_no
int dc_tbl_no
Definition: mrpt_jpeglib.h:122
J_DITHER_MODE
J_DITHER_MODE
Definition: mrpt_jpeglib.h:228
jpeg_component_info::MCU_blocks
int MCU_blocks
Definition: mrpt_jpeglib.h:160
jpeg_compress_struct::MCU_rows_in_scan
JDIMENSION MCU_rows_in_scan
Definition: mrpt_jpeglib.h:382
jpeg_compress_struct::coef
struct jpeg_c_coef_controller * coef
Definition: mrpt_jpeglib.h:398
jpeg_decompress_struct::output_height
JDIMENSION output_height
Definition: mrpt_jpeglib.h:461
jpeg_decompress_struct::unread_marker
int unread_marker
Definition: mrpt_jpeglib.h:617
jpeg_compress_struct::total_iMCU_rows
JDIMENSION total_iMCU_rows
Definition: mrpt_jpeglib.h:365
jpeg_component_info::component_needed
boolean component_needed
Definition: mrpt_jpeglib.h:154
jpeg_progress_mgr::completed_passes
int completed_passes
Definition: mrpt_jpeglib.h:708
jpeg_compress_struct::scan_info
const jpeg_scan_info * scan_info
Definition: mrpt_jpeglib.h:312
jpeg_destination_mgr
Definition: mrpt_jpeglib.h:714
jvirt_barray_ptr
struct jvirt_barray_control * jvirt_barray_ptr
Definition: mrpt_jpeglib.h:754
jpeg_compress_struct::write_JFIF_header
boolean write_JFIF_header
Definition: mrpt_jpeglib.h:335
jpeg_decompress_struct::arith_dc_L
UINT8 arith_dc_L[NUM_ARITH_TBLS]
Definition: mrpt_jpeglib.h:543
jpeg_decompress_struct::dither_mode
J_DITHER_MODE dither_mode
Definition: mrpt_jpeglib.h:446
j_common_ptr
struct jpeg_common_struct * j_common_ptr
Definition: mrpt_jpeglib.h:258
jpeg_decompress_struct::master
struct jpeg_decomp_master * master
Definition: mrpt_jpeglib.h:622
jpeg_compress_struct::jpeg_common_fields
jpeg_common_fields
Definition: mrpt_jpeglib.h:266
jpeg_decompress_struct::marker_list
jpeg_saved_marker_ptr marker_list
Definition: mrpt_jpeglib.h:569
j_decompress_ptr
struct jpeg_decompress_struct * j_decompress_ptr
Definition: mrpt_jpeglib.h:260
jpeg_error_mgr::JMETHOD
JMETHOD(void, error_exit,(j_common_ptr cinfo))
jpeg_compress_struct::marker
struct jpeg_marker_writer * marker
Definition: mrpt_jpeglib.h:399
jpeg_compress_struct::num_scans
int num_scans
Definition: mrpt_jpeglib.h:310
NUM_ARITH_TBLS
#define NUM_ARITH_TBLS
Definition: mrpt_jpeglib.h:40
jpeg_error_mgr::msg_parm
union jpeg_error_mgr::@94 msg_parm
jpeg_decompress_struct::min_DCT_scaled_size
int min_DCT_scaled_size
Definition: mrpt_jpeglib.h:581
jpeg_scan_info::Al
int Al
Definition: mrpt_jpeglib.h:182
jpeg_compress_struct::script_space_size
int script_space_size
Definition: mrpt_jpeglib.h:405
jpeg_decompress_struct::total_iMCU_rows
JDIMENSION total_iMCU_rows
Definition: mrpt_jpeglib.h:583
jpeg_scan_info
Definition: mrpt_jpeglib.h:177
jpeg_compress_struct::downsample
struct jpeg_downsampler * downsample
Definition: mrpt_jpeglib.h:401
jpeg_common_struct
Definition: mrpt_jpeglib.h:249
jpeg_component_info::ac_tbl_no
int ac_tbl_no
Definition: mrpt_jpeglib.h:123
jpeg_compress_struct::data_precision
int data_precision
Definition: mrpt_jpeglib.h:291
jpeg_source_mgr::bytes_in_buffer
size_t bytes_in_buffer
Definition: mrpt_jpeglib.h:729
jpeg_saved_marker_ptr
struct jpeg_marker_struct FAR * jpeg_saved_marker_ptr
Definition: mrpt_jpeglib.h:187
jpeg_decompress_struct::output_gamma
double output_gamma
Definition: mrpt_jpeglib.h:435
jpeg_marker_struct::original_length
unsigned int original_length
Definition: mrpt_jpeglib.h:193
jpeg_compress_struct
Definition: mrpt_jpeglib.h:264
C_MAX_BLOCKS_IN_MCU
#define C_MAX_BLOCKS_IN_MCU
Definition: mrpt_jpeglib.h:50
jpeg_error_mgr::msg_code
int msg_code
Definition: mrpt_jpeglib.h:661
JSAMPARRAY
JSAMPROW * JSAMPARRAY
Definition: mrpt_jpeglib.h:61
jpeg_decompress_struct::output_components
int output_components
Definition: mrpt_jpeglib.h:463
JDITHER_FS
@ JDITHER_FS
Definition: mrpt_jpeglib.h:231
jpeg_decompress_struct::upsample
struct jpeg_upsampler * upsample
Definition: mrpt_jpeglib.h:630
val
int val
Definition: mrpt_jpeglib.h:955
jpeg_scan_info::Ss
int Ss
Definition: mrpt_jpeglib.h:181
jpeg_decompress_struct::cconvert
struct jpeg_color_deconverter * cconvert
Definition: mrpt_jpeglib.h:631
jpeg_decompress_struct::Ss
int Ss
Definition: mrpt_jpeglib.h:611
jpeg_decompress_struct::Al
int Al
Definition: mrpt_jpeglib.h:611
data
GLsizei GLsizei GLenum GLenum const GLvoid * data
Definition: glext.h:3547
jpeg_component_info::component_index
int component_index
Definition: mrpt_jpeglib.h:114
jpeg_compress_struct::input_gamma
double input_gamma
Definition: mrpt_jpeglib.h:281
jpeg_decompress_struct::max_v_samp_factor
int max_v_samp_factor
Definition: mrpt_jpeglib.h:579
jpeg_decompress_struct::enable_external_quant
boolean enable_external_quant
Definition: mrpt_jpeglib.h:451
jpeg_component_info::quant_tbl_no
int quant_tbl_no
Definition: mrpt_jpeglib.h:117
JSAMPIMAGE
JSAMPARRAY * JSAMPIMAGE
Definition: mrpt_jpeglib.h:62
jpeg_decompress_struct::Ah
int Ah
Definition: mrpt_jpeglib.h:611
jpeg_compress_struct::main
struct jpeg_c_main_controller * main
Definition: mrpt_jpeglib.h:396
JCOEFPTR
JCOEF FAR * JCOEFPTR
Definition: mrpt_jpeglib.h:69
EXTERN
EXTERN(void) jpeg_destroy_compress JPP((j_compress_ptr cinfo))
jpeg_memory_mgr::max_memory_to_use
long max_memory_to_use
Definition: mrpt_jpeglib.h:798
jpeg_progress_mgr::pass_counter
long pass_counter
Definition: mrpt_jpeglib.h:706
jpeg_decompress_struct::cur_comp_info
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
Definition: mrpt_jpeglib.h:600
jpeg_compress_struct::Se
int Se
Definition: mrpt_jpeglib.h:389
suppress
boolean suppress
Definition: mrpt_jpeglib.h:929
jpeg_decompress_struct::JFIF_minor_version
UINT8 JFIF_minor_version
Definition: mrpt_jpeglib.h:556
init_destination
init_destination(j_compress_ptr cinfo)
Definition: CImage_JPEG_streams.cpp:55
jpeg_component_info::last_row_height
int last_row_height
Definition: mrpt_jpeglib.h:163
FAR
#define FAR
Definition: zconf.h:262
jpeg_stdio_dest
jpeg_stdio_dest(j_compress_ptr cinfo, CStream *out)
Definition: CImage_JPEG_streams.cpp:124
jpeg_component_info::component_id
int component_id
Definition: mrpt_jpeglib.h:113
jpeg_compress_struct::arith_dc_U
UINT8 arith_dc_U[NUM_ARITH_TBLS]
Definition: mrpt_jpeglib.h:307
jpeg_compress_struct::smoothing_factor
int smoothing_factor
Definition: mrpt_jpeglib.h:322
JBLOCKARRAY
JBLOCKROW * JBLOCKARRAY
Definition: mrpt_jpeglib.h:66
jpeg_decompress_struct::output_scan_number
int output_scan_number
Definition: mrpt_jpeglib.h:503
jpeg_compress_struct::arith_code
boolean arith_code
Definition: mrpt_jpeglib.h:319
NUM_QUANT_TBLS
#define NUM_QUANT_TBLS
Definition: mrpt_jpeglib.h:38
jpeg_component_info::height_in_blocks
JDIMENSION height_in_blocks
Definition: mrpt_jpeglib.h:133
NUM_HUFF_TBLS
#define NUM_HUFF_TBLS
Definition: mrpt_jpeglib.h:39
mrpt_jconfig.h
JBLOCKIMAGE
JBLOCKARRAY * JBLOCKIMAGE
Definition: mrpt_jpeglib.h:67
jpeg_memory_mgr
Definition: mrpt_jpeglib.h:756
jpeg_compress_struct::JFIF_minor_version
UINT8 JFIF_minor_version
Definition: mrpt_jpeglib.h:337
jpeg_error_mgr::first_addon_message
int first_addon_message
Definition: mrpt_jpeglib.h:696
jpeg_decompress_struct::quantize_colors
boolean quantize_colors
Definition: mrpt_jpeglib.h:444
jpeg_compress_struct::dct_method
J_DCT_METHOD dct_method
Definition: mrpt_jpeglib.h:323
jpeg_decompress_struct::density_unit
UINT8 density_unit
Definition: mrpt_jpeglib.h:557
jpeg_compress_struct::max_v_samp_factor
int max_v_samp_factor
Definition: mrpt_jpeglib.h:363
JMETHOD
typedef JMETHOD(boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
jpeg_decompress_struct::scale_num
unsigned int scale_num
Definition: mrpt_jpeglib.h:433
JPP
#define JPP(arglist)
Definition: mrpt_jpeglib.h:815
jpeg_decompress_struct::post
struct jpeg_d_post_controller * post
Definition: mrpt_jpeglib.h:625
jpeg_compress_struct::optimize_coding
boolean optimize_coding
Definition: mrpt_jpeglib.h:320
jpeg_decompress_struct::input_iMCU_row
JDIMENSION input_iMCU_row
Definition: mrpt_jpeglib.h:497
jpeg_decompress_struct::arith_ac_K
UINT8 arith_ac_K[NUM_ARITH_TBLS]
Definition: mrpt_jpeglib.h:545
jpeg_decompress_struct::X_density
UINT16 X_density
Definition: mrpt_jpeglib.h:558
jpeg_compress_struct::cur_comp_info
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
Definition: mrpt_jpeglib.h:378
jpeg_decompress_struct::colormap
JSAMPARRAY colormap
Definition: mrpt_jpeglib.h:481
jpeg_compress_struct::restart_interval
unsigned int restart_interval
Definition: mrpt_jpeglib.h:330
JHUFF_TBL::sent_table
boolean sent_table
Definition: mrpt_jpeglib.h:103
jpeg_decompress_struct::out_color_space
J_COLOR_SPACE out_color_space
Definition: mrpt_jpeglib.h:431
jpeg_decompress_struct::quant_tbl_ptrs
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
Definition: mrpt_jpeglib.h:524
jpeg_compress_struct::restart_in_rows
int restart_in_rows
Definition: mrpt_jpeglib.h:331
jpeg_compress_struct::dest
struct jpeg_destination_mgr * dest
Definition: mrpt_jpeglib.h:269
JDCT_FLOAT
@ JDCT_FLOAT
Definition: mrpt_jpeglib.h:216
DCTSIZE2
#define DCTSIZE2
Definition: mrpt_jpeglib.h:37
jpeg_compress_struct::Ah
int Ah
Definition: mrpt_jpeglib.h:389
fill_input_buffer
fill_input_buffer(j_decompress_ptr cinfo)
Definition: CImage_JPEG_streams.cpp:214
buffer
GLuint buffer
Definition: glext.h:3917
jpeg_decompress_struct::comp_info
jpeg_component_info * comp_info
Definition: mrpt_jpeglib.h:537
jpeg_compress_struct::arith_dc_L
UINT8 arith_dc_L[NUM_ARITH_TBLS]
Definition: mrpt_jpeglib.h:306
jpeg_decompress_struct::restart_interval
unsigned int restart_interval
Definition: mrpt_jpeglib.h:548
jpeg_decompress_struct::MCUs_per_row
JDIMENSION MCUs_per_row
Definition: mrpt_jpeglib.h:603
jpeg_decompress_struct::Y_density
UINT16 Y_density
Definition: mrpt_jpeglib.h:559
skip_input_data
skip_input_data(j_decompress_ptr cinfo, long num_bytes)
Definition: CImage_JPEG_streams.cpp:254
jpeg_decompress_struct::rec_outbuf_height
int rec_outbuf_height
Definition: mrpt_jpeglib.h:467
jpeg_compress_struct::X_density
UINT16 X_density
Definition: mrpt_jpeglib.h:343
jpeg_decompress_struct::out_color_components
int out_color_components
Definition: mrpt_jpeglib.h:462
jpeg_compress_struct::Y_density
UINT16 Y_density
Definition: mrpt_jpeglib.h:344
jpeg_decompress_struct::arith_code
boolean arith_code
Definition: mrpt_jpeglib.h:541
jpeg_decompress_struct::cquantize
struct jpeg_color_quantizer * cquantize
Definition: mrpt_jpeglib.h:632
JBLOCK
JCOEF JBLOCK[DCTSIZE2]
Definition: mrpt_jpeglib.h:64
jpeg_error_mgr::i
int i[8]
Definition: mrpt_jpeglib.h:664
term_source
term_source(j_decompress_ptr cinfo)
Definition: CImage_JPEG_streams.cpp:295
jpeg_component_info::quant_table
JQUANT_TBL * quant_table
Definition: mrpt_jpeglib.h:169
jpeg_decompress_struct::MCU_membership
int MCU_membership[D_MAX_BLOCKS_IN_MCU]
Definition: mrpt_jpeglib.h:607
jpeg_progress_mgr
Definition: mrpt_jpeglib.h:702
JDCT_IFAST
@ JDCT_IFAST
Definition: mrpt_jpeglib.h:215
jpeg_component_info::MCU_sample_width
int MCU_sample_width
Definition: mrpt_jpeglib.h:161
jpeg_compress_struct::MCUs_per_row
JDIMENSION MCUs_per_row
Definition: mrpt_jpeglib.h:381
jpeg_compress_struct::master
struct jpeg_comp_master * master
Definition: mrpt_jpeglib.h:395
jpeg_decompress_struct::ac_huff_tbl_ptrs
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
Definition: mrpt_jpeglib.h:528
jpeg_decompress_struct::progressive_mode
boolean progressive_mode
Definition: mrpt_jpeglib.h:540
jpeg_compress_struct::script_space
jpeg_scan_info * script_space
Definition: mrpt_jpeglib.h:404
jpeg_error_mgr::jpeg_message_table
const char *const * jpeg_message_table
Definition: mrpt_jpeglib.h:690
jpeg_decompress_struct::data_precision
int data_precision
Definition: mrpt_jpeglib.h:535
jpeg_decompress_struct::jpeg_common_fields
jpeg_common_fields
Definition: mrpt_jpeglib.h:412
JCS_CMYK
@ JCS_CMYK
Definition: mrpt_jpeglib.h:207
jpeg_decompress_struct::CCIR601_sampling
boolean CCIR601_sampling
Definition: mrpt_jpeglib.h:563
jpeg_decompress_struct::scale_denom
unsigned int scale_denom
Definition: mrpt_jpeglib.h:433
jpeg_decompress_struct::entropy
struct jpeg_entropy_decoder * entropy
Definition: mrpt_jpeglib.h:628
jpeg_compress_struct::write_Adobe_marker
boolean write_Adobe_marker
Definition: mrpt_jpeglib.h:345
jpeg_compress_struct::input_components
int input_components
Definition: mrpt_jpeglib.h:278
jpeg_compress_struct::Al
int Al
Definition: mrpt_jpeglib.h:389
jpeg_decompress_struct::do_block_smoothing
boolean do_block_smoothing
Definition: mrpt_jpeglib.h:442
JBLOCKROW
JBLOCK FAR * JBLOCKROW
Definition: mrpt_jpeglib.h:65
jpeg_destination_mgr::JMETHOD
JMETHOD(void, init_destination,(j_compress_ptr cinfo))
jpeg_decompress_struct::idct
struct jpeg_inverse_dct * idct
Definition: mrpt_jpeglib.h:629
jpeg_compress_struct::progressive_mode
boolean progressive_mode
Definition: mrpt_jpeglib.h:361
jpeg_progress_mgr::pass_limit
long pass_limit
Definition: mrpt_jpeglib.h:707
jpeg_marker_struct::next
jpeg_saved_marker_ptr next
Definition: mrpt_jpeglib.h:191
JCS_GRAYSCALE
@ JCS_GRAYSCALE
Definition: mrpt_jpeglib.h:204
jpeg_decompress_struct::Adobe_transform
UINT8 Adobe_transform
Definition: mrpt_jpeglib.h:561
jpeg_compress_struct::quant_tbl_ptrs
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
Definition: mrpt_jpeglib.h:299
jpeg_decompress_struct::marker
struct jpeg_marker_reader * marker
Definition: mrpt_jpeglib.h:627
jpeg_compress_struct::arith_ac_K
UINT8 arith_ac_K[NUM_ARITH_TBLS]
Definition: mrpt_jpeglib.h:308
term_destination
term_destination(j_compress_ptr cinfo)
Definition: CImage_JPEG_streams.cpp:114
jpeg_progress_mgr::JMETHOD
JMETHOD(void, progress_monitor,(j_common_ptr cinfo))
jpeg_component_info::h_samp_factor
int h_samp_factor
Definition: mrpt_jpeglib.h:115
jpeg_decompress_struct::MCU_rows_in_scan
JDIMENSION MCU_rows_in_scan
Definition: mrpt_jpeglib.h:604
jpeg_component_info::last_col_width
int last_col_width
Definition: mrpt_jpeglib.h:162
jpeg_destination_mgr::next_output_byte
JOCTET * next_output_byte
Definition: mrpt_jpeglib.h:716
jpeg_decompress_struct::coef
struct jpeg_d_coef_controller * coef
Definition: mrpt_jpeglib.h:624
jpeg_decompress_struct::inputctl
struct jpeg_input_controller * inputctl
Definition: mrpt_jpeglib.h:626
jpeg_decompress_struct::buffered_image
boolean buffered_image
Definition: mrpt_jpeglib.h:437
jpeg_compress_struct::comps_in_scan
int comps_in_scan
Definition: mrpt_jpeglib.h:377
jpeg_decompress_struct::do_fancy_upsampling
boolean do_fancy_upsampling
Definition: mrpt_jpeglib.h:441
jpeg_decompress_struct::desired_number_of_colors
int desired_number_of_colors
Definition: mrpt_jpeglib.h:448
jpeg_compress_struct::CCIR601_sampling
boolean CCIR601_sampling
Definition: mrpt_jpeglib.h:321
jpeg_component_info::downsampled_height
JDIMENSION downsampled_height
Definition: mrpt_jpeglib.h:149
jpeg_marker_struct::data
JOCTET FAR * data
Definition: mrpt_jpeglib.h:195
jpeg_decompress_struct::enable_2pass_quant
boolean enable_2pass_quant
Definition: mrpt_jpeglib.h:452
infile
FILE * infile
Definition: mrpt_jpeglib.h:909
jpeg_source_mgr::JMETHOD
JMETHOD(void, init_source,(j_decompress_ptr cinfo))
jpeg_memory_mgr::JMETHOD
JMETHOD(void *, alloc_small,(j_common_ptr cinfo, int pool_id, size_t sizeofobject))
jpeg_decompress_struct::enable_1pass_quant
boolean enable_1pass_quant
Definition: mrpt_jpeglib.h:450
jpeg_source_mgr
Definition: mrpt_jpeglib.h:726
jpeg_decompress_struct::JFIF_major_version
UINT8 JFIF_major_version
Definition: mrpt_jpeglib.h:555
jpeg_compress_struct::jpeg_color_space
J_COLOR_SPACE jpeg_color_space
Definition: mrpt_jpeglib.h:294
jpeg_decompress_struct::image_height
JDIMENSION image_height
Definition: mrpt_jpeglib.h:421
JCS_YCCK
@ JCS_YCCK
Definition: mrpt_jpeglib.h:208
MAX_COMPS_IN_SCAN
#define MAX_COMPS_IN_SCAN
Definition: mrpt_jpeglib.h:41
jpeg_component_info::v_samp_factor
int v_samp_factor
Definition: mrpt_jpeglib.h:116
jpeg_decompress_struct
Definition: mrpt_jpeglib.h:410
J_COLOR_SPACE
J_COLOR_SPACE
Definition: mrpt_jpeglib.h:202
jpeg_component_info
Definition: mrpt_jpeglib.h:108
J_DCT_METHOD
J_DCT_METHOD
Definition: mrpt_jpeglib.h:213
JHUFF_TBL
Definition: mrpt_jpeglib.h:92
D_MAX_BLOCKS_IN_MCU
#define D_MAX_BLOCKS_IN_MCU
Definition: mrpt_jpeglib.h:52
JCS_UNKNOWN
@ JCS_UNKNOWN
Definition: mrpt_jpeglib.h:203
jpeg_memory_mgr::max_alloc_chunk
long max_alloc_chunk
Definition: mrpt_jpeglib.h:801
jpeg_error_mgr::last_addon_message
int last_addon_message
Definition: mrpt_jpeglib.h:697



Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST