20 #ifndef JCONFIG_INCLUDED 29 #define JPEG_LIB_VERSION 62 38 #define NUM_QUANT_TBLS 4 39 #define NUM_HUFF_TBLS 4 40 #define NUM_ARITH_TBLS 16 41 #define MAX_COMPS_IN_SCAN 4 42 #define MAX_SAMP_FACTOR 4 50 #define C_MAX_BLOCKS_IN_MCU 10 51 #ifndef D_MAX_BLOCKS_IN_MCU 52 #define D_MAX_BLOCKS_IN_MCU 10 220 #define JDCT_DEFAULT JDCT_ISLOW 223 #define JDCT_FASTEST JDCT_IFAST 236 #define jpeg_common_fields \ 237 struct jpeg_error_mgr* err; \ 238 struct jpeg_memory_mgr* mem; \ 239 struct jpeg_progress_mgr* \ 242 boolean is_decompressor; \ 396 struct jpeg_c_main_controller*
main;
397 struct jpeg_c_prep_controller*
prep;
398 struct jpeg_c_coef_controller*
coef;
623 struct jpeg_d_main_controller*
main;
624 struct jpeg_d_coef_controller*
coef;
625 struct jpeg_d_post_controller*
post;
654 #define JMSG_LENGTH_MAX 200 662 #define JMSG_STR_PARM_MAX 80 749 #define JPOOL_PERMANENT 0 750 #define JPOOL_IMAGE 1 751 #define JPOOL_NUMPOOLS 2 761 (
j_common_ptr cinfo,
int pool_id,
size_t sizeofobject));
763 void FAR*, alloc_large,
764 (
j_common_ptr cinfo,
int pool_id,
size_t sizeofobject));
767 (
j_common_ptr cinfo,
int pool_id, JDIMENSION samplesperrow,
768 JDIMENSION numrows));
771 (
j_common_ptr cinfo,
int pool_id, JDIMENSION blocksperrow,
772 JDIMENSION numrows));
776 JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess));
780 JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess));
785 JDIMENSION num_rows,
boolean writable));
789 JDIMENSION num_rows,
boolean writable));
814 #ifdef HAVE_PROTOTYPES 815 #define JPP(arglist) arglist 817 #define JPP(arglist) () 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 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)) 900 jpeg_CreateDecompress
JPP(
918 jpeg_set_quality
JPP(
921 jpeg_set_linear_quality
JPP(
922 (
j_compress_ptr cinfo,
int scale_factor,
boolean force_baseline));
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));
937 jpeg_write_scanlines
JPP(
943 jpeg_write_raw_data
JPP(
948 jpeg_write_marker
JPP(
950 unsigned int datalen));
953 jpeg_write_m_header
JPP(
964 #define JPEG_SUSPENDED 0 965 #define JPEG_HEADER_OK 1 966 #define JPEG_HEADER_TABLES_ONLY \ 978 jpeg_read_scanlines
JPP(
984 jpeg_read_raw_data
JPP(
997 #define JPEG_REACHED_SOS 1 998 #define JPEG_REACHED_EOI 2 999 #define JPEG_ROW_COMPLETED 3 1000 #define JPEG_SCAN_COMPLETED 4 1007 jpeg_save_markers
JPP(
1012 jpeg_set_marker_processor
JPP(
1014 jpeg_marker_parser_method routine));
1019 jpeg_write_coefficients
JPP(
1022 jpeg_copy_critical_parameters
JPP(
1048 #define JPEG_RST0 0xD0 1049 #define JPEG_EOI 0xD9 1050 #define JPEG_APP0 0xE0 1051 #define JPEG_COM 0xFE 1058 #ifdef INCOMPLETE_TYPES_BROKEN 1059 #ifndef JPEG_INTERNALS 1060 struct jvirt_sarray_control
1064 struct jvirt_barray_control
1068 struct jpeg_comp_master
1072 struct jpeg_c_main_controller
1076 struct jpeg_c_prep_controller
1080 struct jpeg_c_coef_controller
1084 struct jpeg_marker_writer
1088 struct jpeg_color_converter
1092 struct jpeg_downsampler
1096 struct jpeg_forward_dct
1100 struct jpeg_entropy_encoder
1104 struct jpeg_decomp_master
1108 struct jpeg_d_main_controller
1112 struct jpeg_d_coef_controller
1116 struct jpeg_d_post_controller
1120 struct jpeg_input_controller
1124 struct jpeg_marker_reader
1128 struct jpeg_entropy_decoder
1132 struct jpeg_inverse_dct
1136 struct jpeg_upsampler
1140 struct jpeg_color_deconverter
1144 struct jpeg_color_quantizer
1158 #ifdef JPEG_INTERNALS 1159 #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
#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
union jpeg_error_mgr::@94 msg_parm
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