Go to the documentation of this file.
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"
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
struct jpeg_forward_dct * fdct
struct jvirt_sarray_control * jvirt_sarray_ptr
struct jpeg_c_prep_controller * prep
JSAMPLE * sample_range_limit
struct jpeg_compress_struct * j_compress_ptr
JDIMENSION output_scanline
JDIMENSION output_iMCU_row
jpeg_component_info * comp_info
int actual_number_of_colors
boolean two_pass_quantize
JDIMENSION downsampled_width
const JOCTET * next_input_byte
init_source(j_decompress_ptr cinfo)
UINT8 arith_dc_U[NUM_ARITH_TBLS]
empty_output_buffer(j_compress_ptr cinfo)
struct jpeg_color_converter * cconvert
int(* coef_bits)[DCTSIZE2]
struct jpeg_source_mgr * src
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
struct jpeg_entropy_encoder * entropy
#define JMSG_STR_PARM_MAX
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
int MCU_membership[C_MAX_BLOCKS_IN_MCU]
jpeg_stdio_src(j_decompress_ptr cinfo, CStream *in)
JDIMENSION width_in_blocks
struct jpeg_d_main_controller * main
J_COLOR_SPACE jpeg_color_space
J_COLOR_SPACE in_color_space
const char *const * addon_message_table
JDIMENSION MCU_rows_in_scan
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
const jpeg_scan_info * scan_info
struct jvirt_barray_control * jvirt_barray_ptr
boolean write_JFIF_header
UINT8 arith_dc_L[NUM_ARITH_TBLS]
J_DITHER_MODE dither_mode
struct jpeg_common_struct * j_common_ptr
struct jpeg_decomp_master * master
jpeg_saved_marker_ptr marker_list
struct jpeg_decompress_struct * j_decompress_ptr
JMETHOD(void, error_exit,(j_common_ptr cinfo))
struct jpeg_marker_writer * marker
union jpeg_error_mgr::@94 msg_parm
JDIMENSION total_iMCU_rows
struct jpeg_downsampler * downsample
struct jpeg_marker_struct FAR * jpeg_saved_marker_ptr
unsigned int original_length
#define C_MAX_BLOCKS_IN_MCU
struct jpeg_upsampler * upsample
struct jpeg_color_deconverter * cconvert
GLsizei GLsizei GLenum GLenum const GLvoid * data
boolean enable_external_quant
struct jpeg_c_main_controller * main
EXTERN(void) jpeg_destroy_compress JPP((j_compress_ptr cinfo))
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
init_destination(j_compress_ptr cinfo)
jpeg_stdio_dest(j_compress_ptr cinfo, CStream *out)
UINT8 arith_dc_U[NUM_ARITH_TBLS]
JDIMENSION height_in_blocks
JBLOCKARRAY * JBLOCKIMAGE
typedef JMETHOD(boolean, jpeg_marker_parser_method,(j_decompress_ptr cinfo))
struct jpeg_d_post_controller * post
JDIMENSION input_iMCU_row
UINT8 arith_ac_K[NUM_ARITH_TBLS]
jpeg_component_info * cur_comp_info[MAX_COMPS_IN_SCAN]
unsigned int restart_interval
J_COLOR_SPACE out_color_space
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
struct jpeg_destination_mgr * dest
fill_input_buffer(j_decompress_ptr cinfo)
jpeg_component_info * comp_info
UINT8 arith_dc_L[NUM_ARITH_TBLS]
unsigned int restart_interval
skip_input_data(j_decompress_ptr cinfo, long num_bytes)
struct jpeg_color_quantizer * cquantize
term_source(j_decompress_ptr cinfo)
int MCU_membership[D_MAX_BLOCKS_IN_MCU]
struct jpeg_comp_master * master
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
jpeg_scan_info * script_space
const char *const * jpeg_message_table
struct jpeg_entropy_decoder * entropy
boolean write_Adobe_marker
boolean do_block_smoothing
JMETHOD(void, init_destination,(j_compress_ptr cinfo))
struct jpeg_inverse_dct * idct
jpeg_saved_marker_ptr next
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
struct jpeg_marker_reader * marker
UINT8 arith_ac_K[NUM_ARITH_TBLS]
term_destination(j_compress_ptr cinfo)
JMETHOD(void, progress_monitor,(j_common_ptr cinfo))
JDIMENSION MCU_rows_in_scan
JOCTET * next_output_byte
struct jpeg_d_coef_controller * coef
struct jpeg_input_controller * inputctl
boolean do_fancy_upsampling
int desired_number_of_colors
JDIMENSION downsampled_height
boolean enable_2pass_quant
JMETHOD(void, init_source,(j_decompress_ptr cinfo))
JMETHOD(void *, alloc_small,(j_common_ptr cinfo, int pool_id, size_t sizeofobject))
boolean enable_1pass_quant
J_COLOR_SPACE jpeg_color_space
#define MAX_COMPS_IN_SCAN
#define D_MAX_BLOCKS_IN_MCU
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |