23 #ifndef JCONFIG_INCLUDED 33 #define JPEG_LIB_VERSION 62 43 #define NUM_QUANT_TBLS 4 44 #define NUM_HUFF_TBLS 4 45 #define NUM_ARITH_TBLS 16 46 #define MAX_COMPS_IN_SCAN 4 47 #define MAX_SAMP_FACTOR 4 55 #define C_MAX_BLOCKS_IN_MCU 10 56 #ifndef D_MAX_BLOCKS_IN_MCU 57 #define D_MAX_BLOCKS_IN_MCU 10 224 #define JDCT_DEFAULT JDCT_ISLOW 227 #define JDCT_FASTEST JDCT_IFAST 241 #define jpeg_common_fields \ 242 struct jpeg_error_mgr * err; \ 243 struct jpeg_memory_mgr * mem; \ 244 struct jpeg_progress_mgr * progress; \ 245 void * client_data; \ 246 boolean is_decompressor; \ 652 #define JMSG_LENGTH_MAX 200 660 #define JMSG_STR_PARM_MAX 80 702 JMETHOD(
void, progress_monitor, (j_common_ptr cinfo));
732 JMETHOD(
boolean, resync_to_restart, (j_decompress_ptr cinfo,
int desired));
748 #define JPOOL_PERMANENT 0 749 #define JPOOL_IMAGE 1 750 #define JPOOL_NUMPOOLS 2 761 size_t sizeofobject));
782 jvirt_sarray_ptr
ptr,
787 jvirt_barray_ptr ptr,
809 typedef JMETHOD(
boolean, jpeg_marker_parser_method, (j_decompress_ptr cinfo));
817 #ifdef HAVE_PROTOTYPES 818 #define JPP(arglist) arglist 820 #define JPP(arglist) () 831 #ifdef NEED_SHORT_EXTERNAL_NAMES 832 #define jpeg_std_error jStdError 833 #define jpeg_CreateCompress jCreaCompress 834 #define jpeg_CreateDecompress jCreaDecompress 835 #define jpeg_destroy_compress jDestCompress 836 #define jpeg_destroy_decompress jDestDecompress 837 #define jpeg_stdio_dest jStdDest 838 #define jpeg_stdio_src jStdSrc 839 #define jpeg_set_defaults jSetDefaults 840 #define jpeg_set_colorspace jSetColorspace 841 #define jpeg_default_colorspace jDefColorspace 842 #define jpeg_set_quality jSetQuality 843 #define jpeg_set_linear_quality jSetLQuality 844 #define jpeg_add_quant_table jAddQuantTable 845 #define jpeg_quality_scaling jQualityScaling 846 #define jpeg_simple_progression jSimProgress 847 #define jpeg_suppress_tables jSuppressTables 848 #define jpeg_alloc_quant_table jAlcQTable 849 #define jpeg_alloc_huff_table jAlcHTable 850 #define jpeg_start_compress jStrtCompress 851 #define jpeg_write_scanlines jWrtScanlines 852 #define jpeg_finish_compress jFinCompress 853 #define jpeg_write_raw_data jWrtRawData 854 #define jpeg_write_marker jWrtMarker 855 #define jpeg_write_m_header jWrtMHeader 856 #define jpeg_write_m_byte jWrtMByte 857 #define jpeg_write_tables jWrtTables 858 #define jpeg_read_header jReadHeader 859 #define jpeg_start_decompress jStrtDecompress 860 #define jpeg_read_scanlines jReadScanlines 861 #define jpeg_finish_decompress jFinDecompress 862 #define jpeg_read_raw_data jReadRawData 863 #define jpeg_has_multiple_scans jHasMultScn 864 #define jpeg_start_output jStrtOutput 865 #define jpeg_finish_output jFinOutput 866 #define jpeg_input_complete jInComplete 867 #define jpeg_new_colormap jNewCMap 868 #define jpeg_consume_input jConsumeInput 869 #define jpeg_calc_output_dimensions jCalcDimensions 870 #define jpeg_save_markers jSaveMarkers 871 #define jpeg_set_marker_processor jSetMarker 872 #define jpeg_read_coefficients jReadCoefs 873 #define jpeg_write_coefficients jWrtCoefs 874 #define jpeg_copy_critical_parameters jCopyCrit 875 #define jpeg_abort_compress jAbrtCompress 876 #define jpeg_abort_decompress jAbrtDecompress 877 #define jpeg_abort jAbort 878 #define jpeg_destroy jDestroy 879 #define jpeg_resync_to_restart jResyncRestart 894 #define jpeg_create_compress(cinfo) \ 895 jpeg_CreateCompress((cinfo), JPEG_LIB_VERSION, \ 896 (size_t) sizeof(struct jpeg_compress_struct)) 897 #define jpeg_create_decompress(cinfo) \ 898 jpeg_CreateDecompress((cinfo), JPEG_LIB_VERSION, \ 899 (size_t) sizeof(struct jpeg_decompress_struct)) 903 int version,
size_t structsize));
923 boolean force_baseline));
927 boolean force_baseline));
954 JPP((j_compress_ptr cinfo,
int marker,
unsigned int datalen));
965 #define JPEG_SUSPENDED 0 966 #define JPEG_HEADER_OK 1 967 #define JPEG_HEADER_TABLES_ONLY 2 975 EXTERN(
boolean) jpeg_start_decompress
JPP((j_decompress_ptr cinfo));
996 #define JPEG_REACHED_SOS 1 997 #define JPEG_REACHED_EOI 2 998 #define JPEG_ROW_COMPLETED 3 999 #define JPEG_SCAN_COMPLETED 4 1011 JPP((j_decompress_ptr cinfo,
int marker_code,
1012 jpeg_marker_parser_method
routine));
1015 EXTERN(jvirt_barray_ptr *) jpeg_read_coefficients
JPP((j_decompress_ptr cinfo));
1016 EXTERN(
void) jpeg_write_coefficients
JPP((j_compress_ptr cinfo,
1045 #define JPEG_RST0 0xD0 1046 #define JPEG_EOI 0xD9 1047 #define JPEG_APP0 0xE0 1048 #define JPEG_COM 0xFE 1056 #ifdef INCOMPLETE_TYPES_BROKEN 1057 #ifndef JPEG_INTERNALS 1091 #ifdef JPEG_INTERNALS boolean write_Adobe_marker
request_virt_barray(j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION blocksperrow, JDIMENSION numrows, JDIMENSION maxaccess)
struct jpeg_c_prep_controller * prep
boolean do_block_smoothing
jpeg_default_colorspace(j_compress_ptr cinfo)
struct jpeg_decompress_struct * j_decompress_ptr
jpeg_read_header(j_decompress_ptr cinfo, boolean require_image)
jpeg_write_raw_data(j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines)
jpeg_consume_input(j_decompress_ptr cinfo)
jpeg_finish_compress(j_compress_ptr cinfo)
JDIMENSION downsampled_width
alloc_small(j_common_ptr cinfo, int pool_id, size_t sizeofobject)
term_source(j_decompress_ptr cinfo)
struct jpeg_forward_dct * fdct
alloc_sarray(j_common_ptr cinfo, int pool_id, JDIMENSION samplesperrow, JDIMENSION numrows)
error_exit(j_common_ptr cinfo)
struct jpeg_d_post_controller * post
J_COLOR_SPACE jpeg_color_space
struct jpeg_input_controller * inputctl
jpeg_component_info * comp_info
struct jpeg_d_main_controller * main
jpeg_abort_decompress(j_decompress_ptr cinfo)
JSAMPARRAY JDIMENSION max_lines
boolean do_fancy_upsampling
boolean enable_2pass_quant
struct jpeg_common_struct * j_common_ptr
int unsigned int length_limit
jpeg_destroy_compress(j_compress_ptr cinfo)
const jpeg_scan_info * scan_info
struct jpeg_marker_reader * marker
struct jpeg_d_coef_controller * coef
JSAMPARRAY JDIMENSION num_lines
struct jpeg_color_converter * cconvert
boolean enable_external_quant
const char *const * addon_message_table
jpeg_CreateCompress(j_compress_ptr cinfo, int version, size_t structsize)
struct jpeg_marker_struct FAR * jpeg_saved_marker_ptr
jpeg_alloc_huff_table(j_common_ptr cinfo)
alloc_large(j_common_ptr cinfo, int pool_id, size_t sizeofobject)
int const JOCTET unsigned int datalen
jpeg_stdio_dest(j_compress_ptr cinfo, FILE *outfile)
free_pool(j_common_ptr cinfo, int pool_id)
struct jpeg_compress_struct * j_compress_ptr
int desired_number_of_colors
jvirt_barray_ptr * coef_arrays
JDIMENSION MCU_rows_in_scan
jpeg_save_markers(j_decompress_ptr cinfo, int marker_code, unsigned int length_limit)
struct jpeg_entropy_encoder * entropy
boolean write_JFIF_header
jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)
self_destruct(j_common_ptr cinfo)
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
J_COLOR_SPACE in_color_space
JDIMENSION width_in_blocks
boolean two_pass_quantize
output_message(j_common_ptr cinfo)
jpeg_saved_marker_ptr marker_list
jpeg_calc_output_dimensions(j_decompress_ptr cinfo)
init_source(j_decompress_ptr cinfo)
jpeg_input_complete(j_decompress_ptr cinfo)
J_COLOR_SPACE out_color_space
jpeg_copy_critical_parameters(j_decompress_ptr srcinfo, j_compress_ptr dstinfo)
jpeg_read_raw_data(j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines)
term_destination(j_compress_ptr cinfo)
int const unsigned int * basic_table
jpeg_set_linear_quality(j_compress_ptr cinfo, int scale_factor, boolean force_baseline)
JDIMENSION height_in_blocks
jpeg_has_multiple_scans(j_decompress_ptr cinfo)
emit_message(j_common_ptr cinfo, int msg_level)
jpeg_finish_output(j_decompress_ptr cinfo)
jpeg_abort(j_common_ptr cinfo)
jpeg_write_marker(j_compress_ptr cinfo, int marker, const JOCTET *dataptr, unsigned int datalen)
struct jpeg_c_coef_controller * coef
JBLOCKARRAY * JBLOCKIMAGE
int JSAMPARRAY int int num_rows
JDIMENSION total_iMCU_rows
JSAMPLE * sample_range_limit
EXTERN(struct jpeg_error_mgr *) jpeg_std_error JPP((struct jpeg_error_mgr *err))
unsigned int restart_interval
struct jpeg_color_quantizer * cquantize
#define C_MAX_BLOCKS_IN_MCU
struct jpeg_destination_mgr * dest
struct jpeg_marker_writer * marker
jpeg_stdio_src(j_decompress_ptr cinfo, FILE *infile)
struct jpeg_downsampler * downsample
jpeg_write_scanlines(j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
struct jpeg_decomp_master * master
struct jpeg_c_main_controller * main
boolean enable_1pass_quant
J_DITHER_MODE dither_mode
unsigned int restart_interval
access_virt_sarray(j_common_ptr cinfo, jvirt_sarray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
jpeg_finish_decompress(j_decompress_ptr cinfo)
skip_input_data(j_decompress_ptr cinfo, long num_bytes)
struct jpeg_color_deconverter * cconvert
#define JMSG_STR_PARM_MAX
jpeg_simple_progression(j_compress_ptr cinfo)
init_destination(j_compress_ptr cinfo)
jpeg_resync_to_restart(j_decompress_ptr cinfo, int desired)
jpeg_set_marker_processor(j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine)
int jpeg_marker_parser_method routine
format_message(j_common_ptr cinfo, char *buffer)
jpeg_new_colormap(j_decompress_ptr cinfo)
JDIMENSION MCU_rows_in_scan
jpeg_add_quant_table(j_compress_ptr cinfo, int which_tbl, const unsigned int *basic_table, int scale_factor, boolean force_baseline)
jpeg_destroy_decompress(j_decompress_ptr cinfo)
struct jvirt_barray_control * jvirt_barray_ptr
jpeg_alloc_quant_table(j_common_ptr cinfo)
struct jpeg_source_mgr * src
jpeg_read_scanlines(j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines)
JDIMENSION output_scanline
jpeg_abort_compress(j_compress_ptr cinfo)
jpeg_saved_marker_ptr next
#define D_MAX_BLOCKS_IN_MCU
const char *const * jpeg_message_table
empty_output_buffer(j_compress_ptr cinfo)
typedef JMETHOD(boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
jpeg_set_colorspace(j_compress_ptr cinfo, J_COLOR_SPACE colorspace)
JDIMENSION input_iMCU_row
png_infop png_bytep buffer
struct jpeg_upsampler * upsample
jpeg_write_m_byte(j_compress_ptr cinfo, int val)
realize_virt_arrays(j_common_ptr cinfo)
reset_error_mgr(j_common_ptr cinfo)
alloc_barray(j_common_ptr cinfo, int pool_id, JDIMENSION blocksperrow, JDIMENSION numrows)
jpeg_start_output(j_decompress_ptr cinfo, int scan_number)
JDIMENSION output_iMCU_row
jpeg_set_defaults(j_compress_ptr cinfo)
jpeg_std_error(struct jpeg_error_mgr *err)
jpeg_write_m_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
request_virt_sarray(j_common_ptr cinfo, int pool_id, boolean pre_zero, JDIMENSION samplesperrow, JDIMENSION numrows, JDIMENSION maxaccess)
jpeg_scan_info * script_space
int const JOCTET * dataptr
jpeg_write_tables(j_compress_ptr cinfo)
fill_input_buffer(j_decompress_ptr cinfo)
jpeg_destroy(j_common_ptr cinfo)
const JOCTET * next_input_byte
jpeg_CreateDecompress(j_decompress_ptr cinfo, int version, size_t structsize)
struct jpeg_inverse_dct * idct
JOCTET * next_output_byte
jpeg_quality_scaling(int quality)
struct jpeg_entropy_decoder * entropy
jpeg_set_quality(j_compress_ptr cinfo, int quality, boolean force_baseline)
JDIMENSION total_iMCU_rows
unsigned int original_length
struct jvirt_sarray_control * jvirt_sarray_ptr
#define MAX_COMPS_IN_SCAN
jpeg_component_info * comp_info
int boolean force_baseline
struct jpeg_comp_master * master
J_COLOR_SPACE jpeg_color_space
access_virt_barray(j_common_ptr cinfo, jvirt_barray_ptr ptr, JDIMENSION start_row, JDIMENSION num_rows, boolean writable)
JDIMENSION downsampled_height
int actual_number_of_colors