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; \ 645 JMETHOD(
void, error_exit, (j_common_ptr cinfo));
647 JMETHOD(
void, emit_message, (j_common_ptr cinfo,
int msg_level));
649 JMETHOD(
void, output_message, (j_common_ptr cinfo));
651 JMETHOD(
void, format_message, (j_common_ptr cinfo,
char *
buffer));
652 #define JMSG_LENGTH_MAX 200 654 JMETHOD(
void, reset_error_mgr, (j_common_ptr cinfo));
660 #define JMSG_STR_PARM_MAX 80 702 JMETHOD(
void, progress_monitor, (j_common_ptr cinfo));
717 JMETHOD(
void, init_destination, (j_compress_ptr cinfo));
718 JMETHOD(
boolean, empty_output_buffer, (j_compress_ptr cinfo));
719 JMETHOD(
void, term_destination, (j_compress_ptr cinfo));
729 JMETHOD(
void, init_source, (j_decompress_ptr cinfo));
730 JMETHOD(
boolean, fill_input_buffer, (j_decompress_ptr cinfo));
731 JMETHOD(
void, skip_input_data, (j_decompress_ptr cinfo,
long num_bytes));
732 JMETHOD(
boolean, resync_to_restart, (j_decompress_ptr cinfo,
int desired));
733 JMETHOD(
void, term_source, (j_decompress_ptr cinfo));
748 #define JPOOL_PERMANENT 0 749 #define JPOOL_IMAGE 1 750 #define JPOOL_NUMPOOLS 2 758 JMETHOD(
void *, alloc_small, (j_common_ptr cinfo,
int pool_id,
760 JMETHOD(
void FAR *, alloc_large, (j_common_ptr cinfo,
int pool_id,
761 size_t sizeofobject));
768 JMETHOD(jvirt_sarray_ptr, request_virt_sarray, (j_common_ptr cinfo,
774 JMETHOD(jvirt_barray_ptr, request_virt_barray, (j_common_ptr cinfo,
780 JMETHOD(
void, realize_virt_arrays, (j_common_ptr cinfo));
782 jvirt_sarray_ptr
ptr,
787 jvirt_barray_ptr ptr,
791 JMETHOD(
void, free_pool, (j_common_ptr cinfo,
int pool_id));
792 JMETHOD(
void, self_destruct, (j_common_ptr cinfo));
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)) 900 EXTERN(
void) jpeg_CreateCompress
JPP((j_compress_ptr cinfo,
902 EXTERN(
void) jpeg_CreateDecompress
JPP((j_decompress_ptr cinfo,
905 EXTERN(
void) jpeg_destroy_compress
JPP((j_compress_ptr cinfo));
906 EXTERN(
void) jpeg_destroy_decompress
JPP((j_decompress_ptr cinfo));
914 EXTERN(
void) jpeg_set_defaults
JPP((j_compress_ptr cinfo));
916 EXTERN(
void) jpeg_set_colorspace
JPP((j_compress_ptr cinfo,
918 EXTERN(
void) jpeg_default_colorspace
JPP((j_compress_ptr cinfo));
921 EXTERN(
void) jpeg_set_linear_quality
JPP((j_compress_ptr cinfo,
929 EXTERN(
void) jpeg_simple_progression
JPP((j_compress_ptr cinfo));
930 EXTERN(
void) jpeg_suppress_tables
JPP((j_compress_ptr cinfo,
936 EXTERN(
void) jpeg_start_compress
JPP((j_compress_ptr cinfo,
941 EXTERN(
void) jpeg_finish_compress
JPP((j_compress_ptr cinfo));
949 EXTERN(
void) jpeg_write_marker
953 EXTERN(
void) jpeg_write_m_header
955 EXTERN(
void) jpeg_write_m_byte
959 EXTERN(
void) jpeg_write_tables
JPP((j_compress_ptr cinfo));
962 EXTERN(
int) jpeg_read_header
JPP((j_decompress_ptr cinfo,
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));
979 EXTERN(
boolean) jpeg_finish_decompress
JPP((j_decompress_ptr cinfo));
987 EXTERN(
boolean) jpeg_has_multiple_scans
JPP((j_decompress_ptr cinfo));
988 EXTERN(
boolean) jpeg_start_output
JPP((j_decompress_ptr cinfo,
990 EXTERN(
boolean) jpeg_finish_output
JPP((j_decompress_ptr cinfo));
991 EXTERN(
boolean) jpeg_input_complete
JPP((j_decompress_ptr cinfo));
992 EXTERN(
void) jpeg_new_colormap
JPP((j_decompress_ptr cinfo));
993 EXTERN(
int) jpeg_consume_input
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 1002 EXTERN(
void) jpeg_calc_output_dimensions
JPP((j_decompress_ptr cinfo));
1005 EXTERN(
void) jpeg_save_markers
1010 EXTERN(
void) jpeg_set_marker_processor
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,
1018 EXTERN(
void) jpeg_copy_critical_parameters
JPP((j_decompress_ptr srcinfo,
1027 EXTERN(
void) jpeg_abort_compress
JPP((j_compress_ptr cinfo));
1028 EXTERN(
void) jpeg_abort_decompress
JPP((j_decompress_ptr cinfo));
1033 EXTERN(
void) jpeg_abort
JPP((j_common_ptr cinfo));
1034 EXTERN(
void) jpeg_destroy
JPP((j_common_ptr cinfo));
1037 EXTERN(
boolean) jpeg_resync_to_restart
JPP((j_decompress_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 1058 struct jvirt_sarray_control {
long dummy; };
1059 struct jvirt_barray_control {
long dummy; };
1091 #ifdef JPEG_INTERNALS boolean write_Adobe_marker
struct jpeg_common_struct * j_common_ptr
boolean do_block_smoothing
struct jpeg_forward_dct * fdct
struct jpeg_color_deconverter * cconvert
struct jpeg_destination_mgr * dest
JOCTET * next_output_byte
JDIMENSION downsampled_width
struct jpeg_comp_master * master
J_COLOR_SPACE jpeg_color_space
jpeg_scan_info * script_space
boolean do_fancy_upsampling
boolean enable_2pass_quant
int boolean force_baseline
struct jpeg_decomp_master * master
const char *const * addon_message_table
boolean enable_external_quant
JSAMPARRAY JDIMENSION num_lines
struct jvirt_sarray_control * jvirt_sarray_ptr
const char *const * jpeg_message_table
struct jpeg_compress_struct * j_compress_ptr
int const JOCTET unsigned int datalen
int desired_number_of_colors
struct jpeg_inverse_dct * idct
#define C_MAX_BLOCKS_IN_MCU
JDIMENSION MCU_rows_in_scan
boolean write_JFIF_header
J_COLOR_SPACE in_color_space
JDIMENSION width_in_blocks
boolean two_pass_quantize
struct jvirt_barray_control * jvirt_barray_ptr
struct jpeg_decompress_struct * j_decompress_ptr
jpeg_saved_marker_ptr marker_list
struct jpeg_marker_reader * marker
HDFFCLIBAPI intf intf intf intf void * buffer
J_COLOR_SPACE out_color_space
struct jpeg_color_quantizer * cquantize
struct jpeg_marker_writer * marker
JDIMENSION height_in_blocks
struct jpeg_d_post_controller * post
JDIMENSION total_iMCU_rows
struct jpeg_d_coef_controller * coef
int unsigned int length_limit
unsigned int restart_interval
struct jpeg_c_coef_controller * coef
jpeg_component_info * comp_info
struct jpeg_entropy_decoder * entropy
#define MAX_COMPS_IN_SCAN
int jpeg_marker_parser_method routine
int JSAMPARRAY int int num_rows
boolean enable_1pass_quant
int const unsigned int * basic_table
JSAMPARRAY JDIMENSION max_lines
J_DITHER_MODE dither_mode
struct jpeg_input_controller * inputctl
unsigned int restart_interval
struct jpeg_downsampler * downsample
JBLOCKARRAY * JBLOCKIMAGE
struct jpeg_c_main_controller * main
JDIMENSION MCU_rows_in_scan
const JOCTET * next_input_byte
struct jpeg_source_mgr * src
JDIMENSION output_scanline
jpeg_saved_marker_ptr next
EXTERN(struct jpeg_error_mgr *) jpeg_std_error JPP((struct jpeg_error_mgr *err))
JDIMENSION input_iMCU_row
struct jpeg_d_main_controller * main
struct jpeg_upsampler * upsample
struct jpeg_color_converter * cconvert
JDIMENSION output_iMCU_row
#define JMSG_STR_PARM_MAX
jvirt_barray_ptr * coef_arrays
HDFFCLIBAPI intf ptr[][4]
#define D_MAX_BLOCKS_IN_MCU
typedef JMETHOD(boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
JSAMPLE * sample_range_limit
int const JOCTET * dataptr
const jpeg_scan_info * scan_info
struct jpeg_marker_struct FAR * jpeg_saved_marker_ptr
JDIMENSION total_iMCU_rows
struct jpeg_c_prep_controller * prep
unsigned int original_length
J_COLOR_SPACE jpeg_color_space
JDIMENSION downsampled_height
int actual_number_of_colors
jpeg_component_info * comp_info
struct jpeg_entropy_encoder * entropy