Lines Matching defs:jpeg_compress_struct
303 struct jpeg_compress_struct { struct
307 struct jpeg_destination_mgr *dest;
314 JDIMENSION image_width; /* input image width */
315 JDIMENSION image_height; /* input image height */
316 int input_components; /* # of color components in input image */
317 J_COLOR_SPACE in_color_space; /* colorspace of input image */
319 double input_gamma; /* image gamma of input image */
330 unsigned int scale_num, scale_denom; /* fraction by which to scale image */
332 JDIMENSION jpeg_width; /* scaled JPEG image width */
333 JDIMENSION jpeg_height; /* scaled JPEG image height */
342 int data_precision; /* bits of precision in image data */
344 int num_components; /* # of color components in JPEG image */
345 J_COLOR_SPACE jpeg_color_space; /* colorspace of JPEG image */
347 jpeg_component_info *comp_info;
350 JQUANT_TBL *quant_tbl_ptrs[NUM_QUANT_TBLS];
352 int q_scale_factor[NUM_QUANT_TBLS];
358 JHUFF_TBL *dc_huff_tbl_ptrs[NUM_HUFF_TBLS];
359 JHUFF_TBL *ac_huff_tbl_ptrs[NUM_HUFF_TBLS];
362 UINT8 arith_dc_L[NUM_ARITH_TBLS]; /* L values for DC arith-coding tables */
363 UINT8 arith_dc_U[NUM_ARITH_TBLS]; /* U values for DC arith-coding tables */
364 UINT8 arith_ac_K[NUM_ARITH_TBLS]; /* Kx values for AC arith-coding tables */
366 int num_scans; /* # of entries in scan_info array */
367 const jpeg_scan_info *scan_info; /* script for multi-scan file, or NULL */
373 boolean raw_data_in; /* TRUE=caller supplies downsampled data */
374 boolean arith_code; /* TRUE=arithmetic coding, FALSE=Huffman */
375 boolean optimize_coding; /* TRUE=optimize entropy encoding parms */
376 boolean CCIR601_sampling; /* TRUE=first samples are cosited */
378 boolean do_fancy_downsampling; /* TRUE=apply fancy downsampling */
380 int smoothing_factor; /* 1..100, or 0 for no input smoothing */
381 J_DCT_METHOD dct_method; /* DCT algorithm selector */
388 unsigned int restart_interval; /* MCUs per restart, or 0 for no restart */
389 int restart_in_rows; /* if > 0, MCU rows per restart interval */
393 boolean write_JFIF_header; /* should a JFIF marker be written? */
394 UINT8 JFIF_major_version; /* What to write for the JFIF version number */
395 UINT8 JFIF_minor_version;
400 UINT8 density_unit; /* JFIF code for pixel size units */
401 UINT16 X_density; /* Horizontal pixel density */
402 UINT16 Y_density; /* Vertical pixel density */
403 boolean write_Adobe_marker; /* should an Adobe marker be written? */
410 JDIMENSION next_scanline; /* 0 .. image_height-1 */
419 boolean progressive_mode; /* TRUE if scan script uses progressive mode */
420 int max_h_samp_factor; /* largest h_samp_factor */
421 int max_v_samp_factor; /* largest v_samp_factor */
424 int min_DCT_h_scaled_size; /* smallest DCT_h_scaled_size of any component */
425 int min_DCT_v_scaled_size; /* smallest DCT_v_scaled_size of any component */
428 JDIMENSION total_iMCU_rows; /* # of iMCU rows to be input to coef ctlr */
439 int comps_in_scan; /* # of JPEG components in this scan */
440 jpeg_component_info *cur_comp_info[MAX_COMPS_IN_SCAN];
443 JDIMENSION MCUs_per_row; /* # of MCUs across the image */
444 JDIMENSION MCU_rows_in_scan; /* # of MCU rows in the image */
446 int blocks_in_MCU; /* # of DCT blocks per MCU */
447 int MCU_membership[C_MAX_BLOCKS_IN_MCU];
451 int Ss, Se, Ah, Al; /* progressive JPEG parameters for scan */
454 int block_size; /* the basic DCT block size: 1..16 */
455 const int *natural_order; /* natural-order position array */
479 jpeg_common_fields; /* Fields shared with jpeg_compress_struct */ argument