19 #ifndef JCONFIG_INCLUDED 28 #define JPEG_LIB_VERSION 62 37 #define NUM_QUANT_TBLS 4 38 #define NUM_HUFF_TBLS 4 39 #define NUM_ARITH_TBLS 16 40 #define MAX_COMPS_IN_SCAN 4 41 #define MAX_SAMP_FACTOR 4 49 #define C_MAX_BLOCKS_IN_MCU 10 50 #ifndef D_MAX_BLOCKS_IN_MCU 51 #define D_MAX_BLOCKS_IN_MCU 10 221 #define JDCT_DEFAULT JDCT_ISLOW 224 #define JDCT_FASTEST JDCT_IFAST 238 #define jpeg_common_fields \ 239 struct jpeg_error_mgr* err; \ 240 struct jpeg_memory_mgr* mem; \ 241 struct jpeg_progress_mgr* \ 244 boolean is_decompressor; \ 398 struct jpeg_c_main_controller*
main;
399 struct jpeg_c_prep_controller*
prep;
400 struct jpeg_c_coef_controller*
coef;
625 struct jpeg_d_main_controller*
main;
626 struct jpeg_d_coef_controller*
coef;
627 struct jpeg_d_post_controller*
post;
656 #define JMSG_LENGTH_MAX 200 664 #define JMSG_STR_PARM_MAX 80 751 #define JPOOL_PERMANENT 0 752 #define JPOOL_IMAGE 1 753 #define JPOOL_NUMPOOLS 2 763 (
j_common_ptr cinfo,
int pool_id,
size_t sizeofobject));
765 void FAR*, alloc_large,
766 (
j_common_ptr cinfo,
int pool_id,
size_t sizeofobject));
769 (
j_common_ptr cinfo,
int pool_id, JDIMENSION samplesperrow,
770 JDIMENSION numrows));
773 (
j_common_ptr cinfo,
int pool_id, JDIMENSION blocksperrow,
774 JDIMENSION numrows));
778 JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess));
782 JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess));
787 JDIMENSION num_rows,
boolean writable));
791 JDIMENSION num_rows,
boolean writable));
816 #ifdef HAVE_PROTOTYPES 817 #define JPP(arglist) arglist 819 #define JPP(arglist) () 829 #ifdef NEED_SHORT_EXTERNAL_NAMES 830 #define jpeg_std_error jStdError 831 #define jpeg_CreateCompress jCreaCompress 832 #define jpeg_CreateDecompress jCreaDecompress 833 #define jpeg_destroy_compress jDestCompress 834 #define jpeg_destroy_decompress jDestDecompress 835 #define jpeg_stdio_dest jStdDest 836 #define jpeg_stdio_src jStdSrc 837 #define jpeg_set_defaults jSetDefaults 838 #define jpeg_set_colorspace jSetColorspace 839 #define jpeg_default_colorspace jDefColorspace 840 #define jpeg_set_quality jSetQuality 841 #define jpeg_set_linear_quality jSetLQuality 842 #define jpeg_add_quant_table jAddQuantTable 843 #define jpeg_quality_scaling jQualityScaling 844 #define jpeg_simple_progression jSimProgress 845 #define jpeg_suppress_tables jSuppressTables 846 #define jpeg_alloc_quant_table jAlcQTable 847 #define jpeg_alloc_huff_table jAlcHTable 848 #define jpeg_start_compress jStrtCompress 849 #define jpeg_write_scanlines jWrtScanlines 850 #define jpeg_finish_compress jFinCompress 851 #define jpeg_write_raw_data jWrtRawData 852 #define jpeg_write_marker jWrtMarker 853 #define jpeg_write_m_header jWrtMHeader 854 #define jpeg_write_m_byte jWrtMByte 855 #define jpeg_write_tables jWrtTables 856 #define jpeg_read_header jReadHeader 857 #define jpeg_start_decompress jStrtDecompress 858 #define jpeg_read_scanlines jReadScanlines 859 #define jpeg_finish_decompress jFinDecompress 860 #define jpeg_read_raw_data jReadRawData 861 #define jpeg_has_multiple_scans jHasMultScn 862 #define jpeg_start_output jStrtOutput 863 #define jpeg_finish_output jFinOutput 864 #define jpeg_input_complete jInComplete 865 #define jpeg_new_colormap jNewCMap 866 #define jpeg_consume_input jConsumeInput 867 #define jpeg_calc_output_dimensions jCalcDimensions 868 #define jpeg_save_markers jSaveMarkers 869 #define jpeg_set_marker_processor jSetMarker 870 #define jpeg_read_coefficients jReadCoefs 871 #define jpeg_write_coefficients jWrtCoefs 872 #define jpeg_copy_critical_parameters jCopyCrit 873 #define jpeg_abort_compress jAbrtCompress 874 #define jpeg_abort_decompress jAbrtDecompress 875 #define jpeg_abort jAbort 876 #define jpeg_destroy jDestroy 877 #define jpeg_resync_to_restart jResyncRestart 891 #define jpeg_create_compress(cinfo) \ 892 jpeg_CreateCompress( \ 893 (cinfo), JPEG_LIB_VERSION, \ 894 (size_t)sizeof(struct jpeg_compress_struct)) 895 #define jpeg_create_decompress(cinfo) \ 896 jpeg_CreateDecompress( \ 897 (cinfo), JPEG_LIB_VERSION, \ 898 (size_t)sizeof(struct jpeg_decompress_struct)) 902 jpeg_CreateDecompress
JPP(
920 jpeg_set_quality
JPP(
923 jpeg_set_linear_quality
JPP(
924 (
j_compress_ptr cinfo,
int scale_factor,
boolean force_baseline));
926 jpeg_add_quant_table
JPP(
927 (
j_compress_ptr cinfo,
int which_tbl,
const unsigned int* basic_table,
928 int scale_factor,
boolean force_baseline));
929 EXTERN(
int) jpeg_quality_scaling
JPP((
int quality));
939 jpeg_write_scanlines
JPP(
945 jpeg_write_raw_data
JPP(
950 jpeg_write_marker
JPP(
952 unsigned int datalen));
955 jpeg_write_m_header
JPP(
966 #define JPEG_SUSPENDED 0 967 #define JPEG_HEADER_OK 1 968 #define JPEG_HEADER_TABLES_ONLY \ 980 jpeg_read_scanlines
JPP(
986 jpeg_read_raw_data
JPP(
999 #define JPEG_REACHED_SOS 1 1000 #define JPEG_REACHED_EOI 2 1001 #define JPEG_ROW_COMPLETED 3 1002 #define JPEG_SCAN_COMPLETED 4 1009 jpeg_save_markers
JPP(
1014 jpeg_set_marker_processor
JPP(
1016 jpeg_marker_parser_method routine));
1021 jpeg_write_coefficients
JPP(
1024 jpeg_copy_critical_parameters
JPP(
1050 #define JPEG_RST0 0xD0 1051 #define JPEG_EOI 0xD9 1052 #define JPEG_APP0 0xE0 1053 #define JPEG_COM 0xFE 1060 #ifdef INCOMPLETE_TYPES_BROKEN 1061 #ifndef JPEG_INTERNALS 1062 struct jvirt_sarray_control
1066 struct jvirt_barray_control
1070 struct jpeg_comp_master
1074 struct jpeg_c_main_controller
1078 struct jpeg_c_prep_controller
1082 struct jpeg_c_coef_controller
1086 struct jpeg_marker_writer
1090 struct jpeg_color_converter
1094 struct jpeg_downsampler
1098 struct jpeg_forward_dct
1102 struct jpeg_entropy_encoder
1106 struct jpeg_decomp_master
1110 struct jpeg_d_main_controller
1114 struct jpeg_d_coef_controller
1118 struct jpeg_d_post_controller
1122 struct jpeg_input_controller
1126 struct jpeg_marker_reader
1130 struct jpeg_entropy_decoder
1134 struct jpeg_inverse_dct
1138 struct jpeg_upsampler
1142 struct jpeg_color_deconverter
1146 struct jpeg_color_quantizer
1160 #ifdef JPEG_INTERNALS 1162 #include "jpegint.h" boolean write_Adobe_marker
struct jpeg_c_prep_controller * prep
boolean do_block_smoothing
UINT8 arith_ac_K[NUM_ARITH_TBLS]
init_destination(j_compress_ptr cinfo)
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
JDIMENSION downsampled_width
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
struct jpeg_forward_dct * fdct
struct jpeg_d_post_controller * post
J_COLOR_SPACE jpeg_color_space
struct jpeg_input_controller * inputctl
jpeg_component_info * comp_info
#define MAX_COMPS_IN_SCAN
struct jpeg_d_main_controller * main
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
UINT8 arith_dc_U[NUM_ARITH_TBLS]
#define D_MAX_BLOCKS_IN_MCU
boolean do_fancy_upsampling
boolean enable_2pass_quant
const jpeg_scan_info * scan_info
struct jpeg_common_struct * j_common_ptr
struct jpeg_marker_reader * marker
struct jpeg_d_coef_controller * coef
struct jpeg_color_converter * cconvert
boolean enable_external_quant
const char *const * addon_message_table
JMETHOD(void, error_exit,(j_common_ptr cinfo))
struct jpeg_compress_struct * j_compress_ptr
JMETHOD(void *, alloc_small,(j_common_ptr cinfo, int pool_id, size_t sizeofobject))
struct jpeg_marker_struct FAR * jpeg_saved_marker_ptr
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
int desired_number_of_colors
JDIMENSION MCU_rows_in_scan
struct jpeg_entropy_encoder * entropy
init_source(j_decompress_ptr cinfo)
boolean write_JFIF_header
fill_input_buffer(j_decompress_ptr cinfo)
UINT8 arith_dc_L[NUM_ARITH_TBLS]
J_COLOR_SPACE in_color_space
JDIMENSION width_in_blocks
boolean two_pass_quantize
jpeg_saved_marker_ptr marker_list
struct jpeg_decompress_struct * j_decompress_ptr
J_COLOR_SPACE out_color_space
int MCU_membership[C_MAX_BLOCKS_IN_MCU]
struct jvirt_barray_control * jvirt_barray_ptr
#define JMSG_STR_PARM_MAX
UINT8 arith_ac_K[NUM_ARITH_TBLS]
jpeg_stdio_src(j_decompress_ptr cinfo, CStream *in)
JBLOCKARRAY * JBLOCKIMAGE
JDIMENSION height_in_blocks
term_source(j_decompress_ptr cinfo)
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
JSAMPLE * sample_range_limit
EXTERN(void) jpeg_destroy_compress JPP((j_compress_ptr cinfo))
unsigned int restart_interval
struct jpeg_color_quantizer * cquantize
term_destination(j_compress_ptr cinfo)
UINT8 arith_dc_U[NUM_ARITH_TBLS]
struct jpeg_destination_mgr * dest
struct jpeg_marker_writer * marker
struct jpeg_downsampler * downsample
JMETHOD(void, progress_monitor,(j_common_ptr cinfo))
struct jpeg_decomp_master * master
struct jpeg_c_main_controller * main
boolean enable_1pass_quant
typedef JMETHOD(boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
J_DITHER_MODE dither_mode
unsigned int restart_interval
union jpeg_error_mgr::@88 msg_parm
#define C_MAX_BLOCKS_IN_MCU
jpeg_stdio_dest(j_compress_ptr cinfo, CStream *out)
struct jpeg_color_deconverter * cconvert
JDIMENSION MCU_rows_in_scan
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
struct jpeg_source_mgr * src
JDIMENSION output_scanline
jpeg_saved_marker_ptr next
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
const char *const * jpeg_message_table
JDIMENSION input_iMCU_row
struct jpeg_upsampler * upsample
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
int MCU_membership[D_MAX_BLOCKS_IN_MCU]
JMETHOD(void, init_source,(j_decompress_ptr cinfo))
JMETHOD(void, init_destination,(j_compress_ptr cinfo))
UINT8 arith_dc_L[NUM_ARITH_TBLS]
JDIMENSION output_iMCU_row
int(* coef_bits)[DCTSIZE2]
jpeg_scan_info * script_space
const JOCTET * next_input_byte
struct jpeg_inverse_dct * idct
GLsizei GLsizei GLenum GLenum const GLvoid * data
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
JOCTET * next_output_byte
struct jpeg_entropy_decoder * entropy
struct jvirt_sarray_control * jvirt_sarray_ptr
JDIMENSION total_iMCU_rows
unsigned int original_length
empty_output_buffer(j_compress_ptr cinfo)
jpeg_component_info * comp_info
struct jpeg_comp_master * master
J_COLOR_SPACE jpeg_color_space
JDIMENSION downsampled_height
skip_input_data(j_decompress_ptr cinfo, long num_bytes)
int actual_number_of_colors