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; \ 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 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)) 922 (
j_compress_ptr cinfo,
int scale_factor,
boolean force_baseline));
925 (
j_compress_ptr cinfo,
int which_tbl,
const unsigned int* basic_table,
926 int scale_factor,
boolean force_baseline));
950 unsigned int datalen));
964 #define JPEG_SUSPENDED 0 965 #define JPEG_HEADER_OK 1 966 #define JPEG_HEADER_TABLES_ONLY \ 997 #define JPEG_REACHED_SOS 1 998 #define JPEG_REACHED_EOI 2 999 #define JPEG_ROW_COMPLETED 3 1000 #define JPEG_SCAN_COMPLETED 4 1014 jpeg_marker_parser_method routine));
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 1158 #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)
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]
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
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)
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)
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
jpeg_read_raw_data(j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines)
JDIMENSION total_iMCU_rows
JSAMPLE * sample_range_limit
EXTERN(void) jpeg_destroy_compress JPP((j_compress_ptr cinfo))
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)
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)
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)
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]
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)
union jpeg_error_mgr::@77 msg_parm
jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)