20 #ifndef JCONFIG_INCLUDED 30 #define JPEG_LIB_VERSION 62 40 #define NUM_QUANT_TBLS 4 41 #define NUM_HUFF_TBLS 4 42 #define NUM_ARITH_TBLS 16 43 #define MAX_COMPS_IN_SCAN 4 44 #define MAX_SAMP_FACTOR 4 52 #define C_MAX_BLOCKS_IN_MCU 10 53 #ifndef D_MAX_BLOCKS_IN_MCU 54 #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 * progress; \ 242 void * client_data; \ 243 boolean is_decompressor; \ 649 #define JMSG_LENGTH_MAX 200 657 #define JMSG_STR_PARM_MAX 80 745 #define JPOOL_PERMANENT 0 746 #define JPOOL_IMAGE 1 747 #define JPOOL_NUMPOOLS 2 814 #ifdef HAVE_PROTOTYPES 815 #define JPP(arglist) arglist 817 #define JPP(arglist) () 828 #ifdef NEED_SHORT_EXTERNAL_NAMES 829 #define jpeg_std_error jStdError 830 #define jpeg_CreateCompress jCreaCompress 831 #define jpeg_CreateDecompress jCreaDecompress 832 #define jpeg_destroy_compress jDestCompress 833 #define jpeg_destroy_decompress jDestDecompress 834 #define jpeg_stdio_dest jStdDest 835 #define jpeg_stdio_src jStdSrc 836 #define jpeg_set_defaults jSetDefaults 837 #define jpeg_set_colorspace jSetColorspace 838 #define jpeg_default_colorspace jDefColorspace 839 #define jpeg_set_quality jSetQuality 840 #define jpeg_set_linear_quality jSetLQuality 841 #define jpeg_add_quant_table jAddQuantTable 842 #define jpeg_quality_scaling jQualityScaling 843 #define jpeg_simple_progression jSimProgress 844 #define jpeg_suppress_tables jSuppressTables 845 #define jpeg_alloc_quant_table jAlcQTable 846 #define jpeg_alloc_huff_table jAlcHTable 847 #define jpeg_start_compress jStrtCompress 848 #define jpeg_write_scanlines jWrtScanlines 849 #define jpeg_finish_compress jFinCompress 850 #define jpeg_write_raw_data jWrtRawData 851 #define jpeg_write_marker jWrtMarker 852 #define jpeg_write_m_header jWrtMHeader 853 #define jpeg_write_m_byte jWrtMByte 854 #define jpeg_write_tables jWrtTables 855 #define jpeg_read_header jReadHeader 856 #define jpeg_start_decompress jStrtDecompress 857 #define jpeg_read_scanlines jReadScanlines 858 #define jpeg_finish_decompress jFinDecompress 859 #define jpeg_read_raw_data jReadRawData 860 #define jpeg_has_multiple_scans jHasMultScn 861 #define jpeg_start_output jStrtOutput 862 #define jpeg_finish_output jFinOutput 863 #define jpeg_input_complete jInComplete 864 #define jpeg_new_colormap jNewCMap 865 #define jpeg_consume_input jConsumeInput 866 #define jpeg_calc_output_dimensions jCalcDimensions 867 #define jpeg_save_markers jSaveMarkers 868 #define jpeg_set_marker_processor jSetMarker 869 #define jpeg_read_coefficients jReadCoefs 870 #define jpeg_write_coefficients jWrtCoefs 871 #define jpeg_copy_critical_parameters jCopyCrit 872 #define jpeg_abort_compress jAbrtCompress 873 #define jpeg_abort_decompress jAbrtDecompress 874 #define jpeg_abort jAbort 875 #define jpeg_destroy jDestroy 876 #define jpeg_resync_to_restart jResyncRestart 891 #define jpeg_create_compress(cinfo) \ 892 jpeg_CreateCompress((cinfo), JPEG_LIB_VERSION, \ 893 (size_t) sizeof(struct jpeg_compress_struct)) 894 #define jpeg_create_decompress(cinfo) \ 895 jpeg_CreateDecompress((cinfo), JPEG_LIB_VERSION, \ 896 (size_t) sizeof(struct jpeg_decompress_struct)) 962 #define JPEG_SUSPENDED 0 963 #define JPEG_HEADER_OK 1 964 #define JPEG_HEADER_TABLES_ONLY 2 993 #define JPEG_REACHED_SOS 1 994 #define JPEG_REACHED_EOI 2 995 #define JPEG_ROW_COMPLETED 3 996 #define JPEG_SCAN_COMPLETED 4 1009 jpeg_marker_parser_method
routine));
1042 #define JPEG_RST0 0xD0 1043 #define JPEG_EOI 0xD9 1044 #define JPEG_APP0 0xE0 1045 #define JPEG_COM 0xFE 1053 #ifdef INCOMPLETE_TYPES_BROKEN 1054 #ifndef JPEG_INTERNALS 1088 #ifdef JPEG_INTERNALS boolean write_Adobe_marker
struct jpeg_c_prep_controller * prep
boolean do_block_smoothing
jpeg_set_quality(j_compress_ptr cinfo, int quality, boolean force_baseline)
int const JOCTET * dataptr
realize_virt_arrays(j_common_ptr cinfo)
reset_error_mgr(j_common_ptr cinfo)
UINT8 arith_ac_K[NUM_ARITH_TBLS]
init_destination(j_compress_ptr cinfo)
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
jvirt_barray_ptr * coef_arrays
JDIMENSION downsampled_width
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
struct jpeg_forward_dct * fdct
jpeg_set_linear_quality(j_compress_ptr cinfo, int scale_factor, boolean force_baseline)
output_message(j_common_ptr cinfo)
struct jpeg_d_post_controller * post
J_COLOR_SPACE jpeg_color_space
jpeg_consume_input(j_decompress_ptr cinfo)
jpeg_write_tables(j_compress_ptr cinfo)
struct jpeg_input_controller * inputctl
jpeg_write_coefficients(j_compress_ptr cinfo, jvirt_barray_ptr *coef_arrays)
jpeg_component_info * comp_info
jpeg_finish_output(j_decompress_ptr cinfo)
#define MAX_COMPS_IN_SCAN
struct jpeg_d_main_controller * main
int jpeg_marker_parser_method routine
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
UINT8 arith_dc_U[NUM_ARITH_TBLS]
jpeg_set_defaults(j_compress_ptr cinfo)
#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
jpeg_finish_decompress(j_decompress_ptr cinfo)
EXTERN(struct jpeg_error_mgr *) jpeg_std_error JPP((struct jpeg_error_mgr *err))
struct jpeg_d_coef_controller * coef
format_message(j_common_ptr cinfo, char *buffer)
jpeg_start_decompress(j_decompress_ptr cinfo)
jpeg_destroy(j_common_ptr cinfo)
struct jpeg_color_converter * cconvert
boolean enable_external_quant
request_virt_barray(j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess)
const char *const * addon_message_table
JMETHOD(void, error_exit,(j_common_ptr cinfo))
self_destruct(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))
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
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)
jpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)
jpeg_write_scanlines(j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
JSAMPARRAY JDIMENSION num_lines
boolean write_JFIF_header
alloc_sarray(j_common_ptr cinfo, int pool_id, JDIMENSION samplesperrow, JDIMENSION numrows)
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
access_virt_barray(j_common_ptr cinfo, jvirt_barray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
jpeg_write_m_byte(j_compress_ptr cinfo, int val)
jpeg_resync_to_restart(j_decompress_ptr cinfo, int desired)
jpeg_read_coefficients(j_decompress_ptr cinfo)
J_COLOR_SPACE out_color_space
jpeg_finish_compress(j_compress_ptr cinfo)
int MCU_membership[C_MAX_BLOCKS_IN_MCU]
jpeg_copy_critical_parameters(j_decompress_ptr srcinfo, j_compress_ptr dstinfo)
jpeg_start_output(j_decompress_ptr cinfo, int scan_number)
struct jvirt_barray_control * jvirt_barray_ptr
#define JMSG_STR_PARM_MAX
jpeg_destroy_decompress(j_decompress_ptr cinfo)
UINT8 arith_ac_K[NUM_ARITH_TBLS]
jpeg_stdio_src(j_decompress_ptr cinfo, CStream *in)
jpeg_read_scanlines(j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines)
JBLOCKARRAY * JBLOCKIMAGE
jpeg_abort(j_common_ptr cinfo)
JDIMENSION height_in_blocks
term_source(j_decompress_ptr cinfo)
jpeg_set_colorspace(j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
jpeg_calc_output_dimensions(j_decompress_ptr cinfo)
struct jpeg_c_coef_controller * coef
int unsigned int length_limit
jpeg_read_raw_data(j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines)
JDIMENSION total_iMCU_rows
int const JOCTET unsigned int datalen
JSAMPLE * sample_range_limit
int const unsigned int * basic_table
access_virt_sarray(j_common_ptr cinfo, jvirt_sarray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
unsigned int restart_interval
struct jpeg_color_quantizer * cquantize
request_virt_sarray(j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess)
term_destination(j_compress_ptr cinfo)
jpeg_alloc_huff_table(j_common_ptr cinfo)
union jpeg_error_mgr::@79 msg_parm
UINT8 arith_dc_U[NUM_ARITH_TBLS]
struct jpeg_destination_mgr * dest
struct jpeg_marker_writer * marker
error_exit(j_common_ptr cinfo)
struct jpeg_downsampler * downsample
jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)
JMETHOD(void, progress_monitor,(j_common_ptr cinfo))
struct jpeg_decomp_master * master
jpeg_read_header(j_decompress_ptr cinfo, boolean require_image)
jpeg_destroy_compress(j_compress_ptr cinfo)
int JSAMPARRAY int int num_rows
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
jpeg_abort_decompress(j_decompress_ptr cinfo)
jpeg_alloc_quant_table(j_common_ptr cinfo)
#define C_MAX_BLOCKS_IN_MCU
jpeg_stdio_dest(j_compress_ptr cinfo, CStream *out)
struct jpeg_color_deconverter * cconvert
jpeg_write_m_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
JSAMPARRAY JDIMENSION max_lines
jpeg_write_marker(j_compress_ptr cinfo, int marker, const JOCTET *dataptr, unsigned int datalen)
jpeg_save_markers(j_decompress_ptr cinfo, int marker_code, unsigned int length_limit)
JDIMENSION MCU_rows_in_scan
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
int boolean force_baseline
jpeg_new_colormap(j_decompress_ptr cinfo)
struct jpeg_source_mgr * src
free_pool(j_common_ptr cinfo, int pool_id)
JDIMENSION output_scanline
jpeg_saved_marker_ptr next
jpeg_simple_progression(j_compress_ptr cinfo)
alloc_small(j_common_ptr cinfo, int pool_id, size_t sizeofobject)
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
const char *const * jpeg_message_table
jpeg_std_error(struct jpeg_error_mgr *err)
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
jpeg_default_colorspace(j_compress_ptr cinfo)
jpeg_set_marker_processor(j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine)
jpeg_write_raw_data(j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines)
const JOCTET * next_input_byte
struct jpeg_inverse_dct * idct
GLsizei GLsizei GLenum GLenum const GLvoid * data
alloc_large(j_common_ptr cinfo, int pool_id, size_t sizeofobject)
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
JOCTET * next_output_byte
jpeg_has_multiple_scans(j_decompress_ptr cinfo)
jpeg_input_complete(j_decompress_ptr cinfo)
jpeg_add_quant_table(j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline)
jpeg_abort_compress(j_compress_ptr cinfo)
struct jpeg_entropy_decoder * entropy
struct jvirt_sarray_control * jvirt_sarray_ptr
alloc_barray(j_common_ptr cinfo, int pool_id, JDIMENSION blocksperrow, JDIMENSION numrows)
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
emit_message(j_common_ptr cinfo, int msg_level)
jpeg_quality_scaling(int quality)
jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)