Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Typedefs | Enumerations | Functions | Variables
jpeglib.h File Reference
#include "jmorecfg.h"
#include "jconfig.h"

Go to the source code of this file.

Classes

struct  JQUANT_TBL
struct  JHUFF_TBL
struct  jpeg_component_info
struct  jpeg_scan_info
struct  jpeg_marker_struct
struct  jpeg_common_struct
struct  jpeg_compress_struct
struct  jpeg_decompress_struct
struct  jpeg_error_mgr
struct  jpeg_progress_mgr
struct  jpeg_destination_mgr
struct  jpeg_source_mgr
struct  jpeg_memory_mgr
union  jpeg_error_mgr.msg_parm

Defines

#define JPEG_LIB_VERSION   62 /* Version 6b */
#define DCTSIZE   8 /* The basic DCT block is 8x8 samples */
#define DCTSIZE2   64 /* DCTSIZE squared; # of elements in a block */
#define NUM_QUANT_TBLS   4 /* Quantization tables are numbered 0..3 */
#define NUM_HUFF_TBLS   4 /* Huffman tables are numbered 0..3 */
#define NUM_ARITH_TBLS   16 /* Arith-coding tables are numbered 0..15 */
#define MAX_COMPS_IN_SCAN   4 /* JPEG limit on # of components in one scan */
#define MAX_SAMP_FACTOR   4 /* JPEG limit on sampling factors */
#define C_MAX_BLOCKS_IN_MCU   10 /* compressor's limit on blocks per MCU */
#define D_MAX_BLOCKS_IN_MCU   10 /* decompressor's limit on blocks per MCU */
#define JDCT_DEFAULT   JDCT_ISLOW
#define JDCT_FASTEST   JDCT_IFAST
#define jpeg_common_fields
#define JMSG_LENGTH_MAX   200 /* recommended size of format_message buffer */
#define JMSG_STR_PARM_MAX   80
#define JPOOL_PERMANENT   0 /* lasts until master record is destroyed */
#define JPOOL_IMAGE   1 /* lasts until done with image/datastream */
#define JPOOL_NUMPOOLS   2
#define JPP(arglist)   arglist
#define jpeg_create_compress(cinfo)
#define jpeg_create_decompress(cinfo)
#define JPEG_SUSPENDED   0 /* Suspended due to lack of input data */
#define JPEG_HEADER_OK   1 /* Found valid image datastream */
#define JPEG_HEADER_TABLES_ONLY   2 /* Found valid table-specs-only datastream */
#define JPEG_REACHED_SOS   1 /* Reached start of new scan */
#define JPEG_REACHED_EOI   2 /* Reached end of image */
#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */
#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */
#define JPEG_RST0   0xD0 /* RST0 marker code */
#define JPEG_EOI   0xD9 /* EOI marker code */
#define JPEG_APP0   0xE0 /* APP0 marker code */
#define JPEG_COM   0xFE /* COM marker code */

Typedefs

typedef JSAMPLE FARJSAMPROW
typedef JSAMPROWJSAMPARRAY
typedef JSAMPARRAYJSAMPIMAGE
typedef JCOEF JBLOCK [DCTSIZE2]
typedef JBLOCK FARJBLOCKROW
typedef JBLOCKROWJBLOCKARRAY
typedef JBLOCKARRAYJBLOCKIMAGE
typedef JCOEF FARJCOEFPTR
typedef struct jpeg_marker_structjpeg_saved_marker_ptr
typedef struct jpeg_common_structj_common_ptr
typedef struct
jpeg_compress_struct
j_compress_ptr
typedef struct
jpeg_decompress_struct
j_decompress_ptr
typedef struct
jvirt_sarray_control
jvirt_sarray_ptr
typedef struct
jvirt_barray_control
jvirt_barray_ptr

Enumerations

enum  J_COLOR_SPACE {
  JCS_UNKNOWN, JCS_GRAYSCALE, JCS_RGB, JCS_YCbCr,
  JCS_CMYK, JCS_YCCK
}
enum  J_DCT_METHOD { JDCT_ISLOW, JDCT_IFAST, JDCT_FLOAT }
enum  J_DITHER_MODE { JDITHER_NONE, JDITHER_ORDERED, JDITHER_FS }

Functions

typedef JMETHOD (boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
 EXTERN (struct jpeg_error_mgr *) jpeg_std_error JPP((struct jpeg_error_mgr *err))
 EXTERN (void) jpeg_CreateCompress JPP((j_compress_ptr cinfo
 EXTERN (int) jpeg_quality_scaling JPP((int quality))
 EXTERN (JQUANT_TBL *) jpeg_alloc_quant_table JPP((j_common_ptr cinfo))
 EXTERN (JHUFF_TBL *) jpeg_alloc_huff_table JPP((j_common_ptr cinfo))
 EXTERN (JDIMENSION) jpeg_write_scanlines JPP((j_compress_ptr cinfo
 EXTERN (boolean) jpeg_start_decompress JPP((j_decompress_ptr cinfo))
 EXTERN (jvirt_barray_ptr *) jpeg_read_coefficients JPP((j_decompress_ptr cinfo))

Variables

int version
int size_t structsize
FILEoutfile
FILEinfile
J_COLOR_SPACE colorspace
int quality
int boolean force_baseline
int scale_factor
int which_tbl
int const unsigned intbasic_table
boolean suppress
boolean write_all_tables
JSAMPARRAY scanlines
JSAMPARRAY JDIMENSION num_lines
JSAMPIMAGE data
int marker
int const JOCTETdataptr
int const JOCTET unsigned int datalen
int val
boolean require_image
JSAMPARRAY JDIMENSION max_lines
int scan_number
int marker_code
int unsigned int length_limit
int jpeg_marker_parser_method routine
jvirt_barray_ptrcoef_arrays
j_compress_ptr dstinfo
int desired

Class Documentation

struct JQUANT_TBL

Definition at line 105 of file jpeglib.h.

Class Members
UINT16 quantval
boolean sent_table
struct JHUFF_TBL

Definition at line 122 of file jpeglib.h.

Class Members
UINT8 bits
UINT8 huffval
boolean sent_table
struct jpeg_component_info

Definition at line 138 of file jpeglib.h.

Collaboration diagram for jpeg_component_info:
Class Members
int ac_tbl_no
int component_id
int component_index
boolean component_needed
int dc_tbl_no
int DCT_scaled_size
void * dct_table
JDIMENSION downsampled_height
JDIMENSION downsampled_width
int h_samp_factor
JDIMENSION height_in_blocks
int last_col_width
int last_row_height
int MCU_blocks
int MCU_height
int MCU_sample_width
int MCU_width
JQUANT_TBL * quant_table
int quant_tbl_no
int v_samp_factor
JDIMENSION width_in_blocks
struct jpeg_scan_info

Definition at line 206 of file jpeglib.h.

Collaboration diagram for jpeg_scan_info:
Class Members
int Ah
int Al
int component_index
int comps_in_scan
int Se
int Ss
struct jpeg_marker_struct

Definition at line 217 of file jpeglib.h.

Collaboration diagram for jpeg_marker_struct:
Class Members
JOCTET FAR * data
unsigned int data_length
UINT8 marker
jpeg_saved_marker_ptr next
unsigned int original_length
struct jpeg_common_struct

Definition at line 275 of file jpeglib.h.

Class Members
jpeg_common_fields
struct jpeg_compress_struct

Definition at line 290 of file jpeglib.h.

Collaboration diagram for jpeg_compress_struct:
Class Members
JHUFF_TBL * ac_huff_tbl_ptrs
int Ah
int Al
UINT8 arith_ac_K
boolean arith_code
UINT8 arith_dc_L
UINT8 arith_dc_U
int blocks_in_MCU
boolean CCIR601_sampling
struct jpeg_color_converter * cconvert
struct jpeg_c_coef_controller * coef
jpeg_component_info * comp_info
int comps_in_scan
jpeg_component_info * cur_comp_info
int data_precision
JHUFF_TBL * dc_huff_tbl_ptrs
J_DCT_METHOD dct_method
UINT8 density_unit
struct jpeg_destination_mgr * dest
struct jpeg_downsampler * downsample
struct jpeg_entropy_encoder * entropy
struct jpeg_forward_dct * fdct
JDIMENSION image_height
JDIMENSION image_width
J_COLOR_SPACE in_color_space
int input_components
double input_gamma
UINT8 JFIF_major_version
UINT8 JFIF_minor_version
J_COLOR_SPACE jpeg_color_space
jpeg_common_fields
struct jpeg_c_main_controller * main
struct jpeg_marker_writer * marker
struct jpeg_comp_master * master
int max_h_samp_factor
int max_v_samp_factor
int MCU_membership
JDIMENSION MCU_rows_in_scan
JDIMENSION MCUs_per_row
JDIMENSION next_scanline
int num_components
int num_scans
boolean optimize_coding
struct jpeg_c_prep_controller * prep
boolean progressive_mode
JQUANT_TBL * quant_tbl_ptrs
boolean raw_data_in
int restart_in_rows
unsigned int restart_interval
const jpeg_scan_info * scan_info
jpeg_scan_info * script_space
int script_space_size
int Se
int smoothing_factor
int Ss
JDIMENSION total_iMCU_rows
boolean write_Adobe_marker
boolean write_JFIF_header
UINT16 X_density
UINT16 Y_density
struct jpeg_decompress_struct

Definition at line 433 of file jpeglib.h.

Collaboration diagram for jpeg_decompress_struct:
Class Members
JHUFF_TBL * ac_huff_tbl_ptrs
int actual_number_of_colors
UINT8 Adobe_transform
int Ah
int Al
UINT8 arith_ac_K
boolean arith_code
UINT8 arith_dc_L
UINT8 arith_dc_U
int blocks_in_MCU
boolean buffered_image
boolean CCIR601_sampling
struct jpeg_color_deconverter * cconvert
struct jpeg_d_coef_controller * coef
int(* coef_bits
JSAMPARRAY colormap
jpeg_component_info * comp_info
int comps_in_scan
struct jpeg_color_quantizer * cquantize
jpeg_component_info * cur_comp_info
int data_precision
JHUFF_TBL * dc_huff_tbl_ptrs
J_DCT_METHOD dct_method
UINT8 density_unit
int desired_number_of_colors
J_DITHER_MODE dither_mode
boolean do_block_smoothing
boolean do_fancy_upsampling
boolean enable_1pass_quant
boolean enable_2pass_quant
boolean enable_external_quant
struct jpeg_entropy_decoder * entropy
struct jpeg_inverse_dct * idct
JDIMENSION image_height
JDIMENSION image_width
JDIMENSION input_iMCU_row
int input_scan_number
struct jpeg_input_controller * inputctl
UINT8 JFIF_major_version
UINT8 JFIF_minor_version
J_COLOR_SPACE jpeg_color_space
jpeg_common_fields
struct jpeg_d_main_controller * main
struct jpeg_marker_reader * marker
jpeg_saved_marker_ptr marker_list
struct jpeg_decomp_master * master
int max_h_samp_factor
int max_v_samp_factor
int MCU_membership
JDIMENSION MCU_rows_in_scan
JDIMENSION MCUs_per_row
int min_DCT_scaled_size
int num_components
int out_color_components
J_COLOR_SPACE out_color_space
int output_components
double output_gamma
JDIMENSION output_height
JDIMENSION output_iMCU_row
int output_scan_number
JDIMENSION output_scanline
JDIMENSION output_width
struct jpeg_d_post_controller * post
boolean progressive_mode
JQUANT_TBL * quant_tbl_ptrs
boolean quantize_colors
boolean raw_data_out
int rec_outbuf_height
unsigned int restart_interval
JSAMPLE * sample_range_limit
boolean saw_Adobe_marker
boolean saw_JFIF_marker
unsigned int scale_denom
unsigned int scale_num
int Se
struct jpeg_source_mgr * src
int Ss
JDIMENSION total_iMCU_rows
boolean two_pass_quantize
int unread_marker
struct jpeg_upsampler * upsample
UINT16 X_density
UINT16 Y_density
union jpeg_error_mgr.msg_parm

Definition at line 683 of file jpeglib.h.

Class Members
int i
char s

Define Documentation

#define C_MAX_BLOCKS_IN_MCU   10 /* compressor's limit on blocks per MCU */

Definition at line 77 of file jpeglib.h.

#define D_MAX_BLOCKS_IN_MCU   10 /* decompressor's limit on blocks per MCU */

Definition at line 79 of file jpeglib.h.

#define DCTSIZE   8 /* The basic DCT block is 8x8 samples */

Definition at line 63 of file jpeglib.h.

#define DCTSIZE2   64 /* DCTSIZE squared; # of elements in a block */

Definition at line 64 of file jpeglib.h.

Definition at line 246 of file jpeglib.h.

Definition at line 249 of file jpeglib.h.

#define JMSG_LENGTH_MAX   200 /* recommended size of format_message buffer */

Definition at line 674 of file jpeglib.h.

Definition at line 682 of file jpeglib.h.

#define JPEG_APP0   0xE0 /* APP0 marker code */

Definition at line 1075 of file jpeglib.h.

#define JPEG_COM   0xFE /* COM marker code */

Definition at line 1076 of file jpeglib.h.

Value:
struct jpeg_error_mgr * err;       /* Error handler module */\
  struct jpeg_memory_mgr * mem;    /* Memory manager module */\
  struct jpeg_progress_mgr * progress; /* Progress monitor, or NULL if none */\
  void * client_data;              /* Available for use by application */\
  boolean is_decompressor;  /* So common code can tell which is which */\
  int global_state          /* For checking call sequence validity */

Definition at line 263 of file jpeglib.h.

Value:
jpeg_CreateCompress((cinfo), JPEG_LIB_VERSION, \
                     (size_t) sizeof(struct jpeg_compress_struct))

Definition at line 919 of file jpeglib.h.

Value:
jpeg_CreateDecompress((cinfo), JPEG_LIB_VERSION, \
                       (size_t) sizeof(struct jpeg_decompress_struct))

Definition at line 922 of file jpeglib.h.

#define JPEG_EOI   0xD9 /* EOI marker code */

Definition at line 1074 of file jpeglib.h.

#define JPEG_HEADER_OK   1 /* Found valid image datastream */

Definition at line 991 of file jpeglib.h.

#define JPEG_HEADER_TABLES_ONLY   2 /* Found valid table-specs-only datastream */

Definition at line 992 of file jpeglib.h.

#define JPEG_LIB_VERSION   62 /* Version 6b */

Definition at line 55 of file jpeglib.h.

#define JPEG_REACHED_EOI   2 /* Reached end of image */

Definition at line 1022 of file jpeglib.h.

#define JPEG_REACHED_SOS   1 /* Reached start of new scan */

Definition at line 1021 of file jpeglib.h.

#define JPEG_ROW_COMPLETED   3 /* Completed one iMCU row */

Definition at line 1023 of file jpeglib.h.

#define JPEG_RST0   0xD0 /* RST0 marker code */

Definition at line 1073 of file jpeglib.h.

#define JPEG_SCAN_COMPLETED   4 /* Completed last iMCU row of a scan */

Definition at line 1024 of file jpeglib.h.

#define JPEG_SUSPENDED   0 /* Suspended due to lack of input data */

Definition at line 990 of file jpeglib.h.

#define JPOOL_IMAGE   1 /* lasts until done with image/datastream */

Definition at line 771 of file jpeglib.h.

Definition at line 772 of file jpeglib.h.

#define JPOOL_PERMANENT   0 /* lasts until master record is destroyed */

Definition at line 770 of file jpeglib.h.

#define JPP (   arglist)    arglist

Definition at line 840 of file jpeglib.h.

#define MAX_COMPS_IN_SCAN   4 /* JPEG limit on # of components in one scan */

Definition at line 68 of file jpeglib.h.

#define MAX_SAMP_FACTOR   4 /* JPEG limit on sampling factors */

Definition at line 69 of file jpeglib.h.

#define NUM_ARITH_TBLS   16 /* Arith-coding tables are numbered 0..15 */

Definition at line 67 of file jpeglib.h.

#define NUM_HUFF_TBLS   4 /* Huffman tables are numbered 0..3 */

Definition at line 66 of file jpeglib.h.

#define NUM_QUANT_TBLS   4 /* Quantization tables are numbered 0..3 */

Definition at line 65 of file jpeglib.h.


Typedef Documentation

Definition at line 283 of file jpeglib.h.

Definition at line 284 of file jpeglib.h.

Definition at line 285 of file jpeglib.h.

typedef JCOEF JBLOCK[DCTSIZE2]

Definition at line 92 of file jpeglib.h.

Definition at line 94 of file jpeglib.h.

Definition at line 95 of file jpeglib.h.

typedef JBLOCK FAR* JBLOCKROW

Definition at line 93 of file jpeglib.h.

typedef JCOEF FAR* JCOEFPTR

Definition at line 97 of file jpeglib.h.

Definition at line 215 of file jpeglib.h.

typedef JSAMPROW* JSAMPARRAY

Definition at line 89 of file jpeglib.h.

Definition at line 90 of file jpeglib.h.

typedef JSAMPLE FAR* JSAMPROW

Definition at line 88 of file jpeglib.h.

Definition at line 775 of file jpeglib.h.

Definition at line 774 of file jpeglib.h.


Enumeration Type Documentation

Enumerator:
JCS_UNKNOWN 
JCS_GRAYSCALE 
JCS_RGB 
JCS_YCbCr 
JCS_CMYK 
JCS_YCCK 

Definition at line 228 of file jpeglib.h.

             {
       JCS_UNKNOWN,         /* error/unspecified */
       JCS_GRAYSCALE,              /* monochrome */
       JCS_RGB,             /* red/green/blue */
       JCS_YCbCr,           /* Y/Cb/Cr (also known as YUV) */
       JCS_CMYK,            /* C/M/Y/K */
       JCS_YCCK             /* Y/Cb/Cr/K */
} J_COLOR_SPACE;
Enumerator:
JDCT_ISLOW 
JDCT_IFAST 
JDCT_FLOAT 

Definition at line 239 of file jpeglib.h.

             {
       JDCT_ISLOW,          /* slow but accurate integer algorithm */
       JDCT_IFAST,          /* faster, less accurate integer method */
       JDCT_FLOAT           /* floating-point: accurate, fast on fast HW */
} J_DCT_METHOD;
Enumerator:
JDITHER_NONE 
JDITHER_ORDERED 
JDITHER_FS 

Definition at line 254 of file jpeglib.h.

             {
       JDITHER_NONE,        /* no dithering */
       JDITHER_ORDERED,     /* simple ordered dither */
       JDITHER_FS           /* Floyd-Steinberg error diffusion dither */
} J_DITHER_MODE;

Function Documentation

EXTERN ( struct jpeg_error_mgr )
EXTERN ( void  )
EXTERN ( int  )
EXTERN ( JQUANT_TBL )
EXTERN ( JHUFF_TBL )
EXTERN ( boolean  )
typedef JMETHOD ( boolean  ,
jpeg_marker_parser_method  ,
(j_decompress_ptr cinfo)   
)

Variable Documentation

int const unsigned int* basic_table

Definition at line 949 of file jpeglib.h.

Definition at line 1042 of file jpeglib.h.

Definition at line 942 of file jpeglib.h.

Definition at line 970 of file jpeglib.h.

int unsigned int datalen

Definition at line 975 of file jpeglib.h.

Definition at line 975 of file jpeglib.h.

Definition at line 1063 of file jpeglib.h.

Definition at line 1044 of file jpeglib.h.

Definition at line 944 of file jpeglib.h.

Definition at line 936 of file jpeglib.h.

int unsigned int length_limit

Definition at line 1031 of file jpeglib.h.

Definition at line 975 of file jpeglib.h.

Definition at line 1031 of file jpeglib.h.

Definition at line 1002 of file jpeglib.h.

Definition at line 964 of file jpeglib.h.

Definition at line 935 of file jpeglib.h.

Definition at line 944 of file jpeglib.h.

Definition at line 988 of file jpeglib.h.

int jpeg_marker_parser_method routine

Definition at line 1036 of file jpeglib.h.

Definition at line 947 of file jpeglib.h.

Definition at line 1014 of file jpeglib.h.

Definition at line 964 of file jpeglib.h.

int size_t structsize

Definition at line 926 of file jpeglib.h.

Definition at line 956 of file jpeglib.h.

Definition at line 981 of file jpeglib.h.

Definition at line 926 of file jpeglib.h.

Definition at line 949 of file jpeglib.h.

Definition at line 962 of file jpeglib.h.