22 #define CSTATE_START 100 23 #define CSTATE_SCANNING 101 24 #define CSTATE_RAW_OK 102 25 #define CSTATE_WRCOEFS 103 26 #define DSTATE_START 200 27 #define DSTATE_INHEADER 201 28 #define DSTATE_READY 202 29 #define DSTATE_PRELOAD 203 30 #define DSTATE_PRESCAN 204 31 #define DSTATE_SCANNING 205 32 #define DSTATE_RAW_OK 206 33 #define DSTATE_BUFIMAGE 207 34 #define DSTATE_BUFPOST 208 35 #define DSTATE_RDCOEFS 209 36 #define DSTATE_STOPPING 210 217 typedef JMETHOD(
void, inverse_DCT_method_ptr,
264 #define MAX(a,b) ((a) > (b) ? (a) : (b)) 266 #define MIN(a,b) ((a) < (b) ? (a) : (b)) 279 #ifdef RIGHT_SHIFT_IS_UNSIGNED 280 #define SHIFT_TEMPS INT32 shift_temp; 281 #define RIGHT_SHIFT(x,shft) \ 282 ((shift_temp = (x)) < 0 ? \ 283 (shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \ 284 (shift_temp >> (shft))) 287 #define RIGHT_SHIFT(x,shft) ((x) >> (shft)) 293 #ifdef NEED_SHORT_EXTERNAL_NAMES 294 #define jinit_compress_master jICompress 295 #define jinit_c_master_control jICMaster 296 #define jinit_c_main_controller jICMainC 297 #define jinit_c_prep_controller jICPrepC 298 #define jinit_c_coef_controller jICCoefC 299 #define jinit_color_converter jICColor 300 #define jinit_downsampler jIDownsampler 301 #define jinit_forward_dct jIFDCT 302 #define jinit_huff_encoder jIHEncoder 303 #define jinit_phuff_encoder jIPHEncoder 304 #define jinit_marker_writer jIMWriter 305 #define jinit_master_decompress jIDMaster 306 #define jinit_d_main_controller jIDMainC 307 #define jinit_d_coef_controller jIDCoefC 308 #define jinit_d_post_controller jIDPostC 309 #define jinit_input_controller jIInCtlr 310 #define jinit_marker_reader jIMReader 311 #define jinit_huff_decoder jIHDecoder 312 #define jinit_phuff_decoder jIPHDecoder 313 #define jinit_inverse_dct jIIDCT 314 #define jinit_upsampler jIUpsampler 315 #define jinit_color_deconverter jIDColor 316 #define jinit_1pass_quantizer jI1Quant 317 #define jinit_2pass_quantizer jI2Quant 318 #define jinit_merged_upsampler jIMUpsampler 319 #define jinit_memory_mgr jIMemMgr 320 #define jdiv_round_up jDivRound 321 #define jround_up jRound 322 #define jcopy_sample_rows jCopySamples 323 #define jcopy_block_row jCopyBlocks 324 #define jzero_far jZeroFar 325 #define jpeg_zigzag_order jZIGTable 326 #define jpeg_natural_order jZAGTable 378 extern const int jpeg_zigzag_order[];
384 #ifdef INCOMPLETE_TYPES_BROKEN 385 #ifndef AM_MEMORY_MANAGER
jinit_marker_reader(j_decompress_ptr cinfo)
jinit_downsampler(j_compress_ptr cinfo)
JMETHOD(void, prepare_for_pass,(j_compress_ptr cinfo))
jzero_far(void FAR *target, size_t bytestozero)
jdiv_round_up(long a, long b)
consume_data(j_decompress_ptr cinfo)
jinit_d_post_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
jinit_merged_upsampler(j_decompress_ptr cinfo)
unsigned int discarded_bytes
compress_data(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
jinit_1pass_quantizer(j_decompress_ptr cinfo)
jcopy_block_row(JBLOCKROW input_row, JBLOCKROW output_row, JDIMENSION num_blocks)
jinit_inverse_dct(j_decompress_ptr cinfo)
jpeg_component_info JCOEFPTR coef_block
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS]
JMETHOD(void, write_file_header,(j_compress_ptr cinfo))
const int jpeg_natural_order[]
prepare_for_pass(j_compress_ptr cinfo)
jround_up(long a, long b)
pass_startup(j_compress_ptr cinfo)
JSAMPARRAY JDIMENSION * out_row_ctr
JMETHOD(void, prepare_for_output_pass,(j_decompress_ptr cinfo))
jvirt_barray_ptr * coef_arrays
write_scan_header(j_compress_ptr cinfo)
read_markers(j_decompress_ptr cinfo)
write_file_header(j_compress_ptr cinfo)
boolean call_pass_startup
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
jpeg_component_info * compptr
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
jcopy_sample_rows(JSAMPARRAY input_array, int source_row, JSAMPARRAY output_array, int dest_row, int num_rows, JDIMENSION num_cols)
jinit_phuff_encoder(j_compress_ptr cinfo)
jinit_d_coef_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
write_marker_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
jinit_compress_master(j_compress_ptr cinfo)
jinit_2pass_quantizer(j_decompress_ptr cinfo)
jpeg_component_info JCOEFPTR JSAMPARRAY JDIMENSION output_col
jinit_huff_encoder(j_compress_ptr cinfo)
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
int JSAMPARRAY int dest_row
jinit_color_deconverter(j_decompress_ptr cinfo)
jinit_memory_mgr(j_common_ptr cinfo)
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
jinit_huff_decoder(j_decompress_ptr cinfo)
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
JBLOCKROW JDIMENSION num_blocks
JMETHOD(void, reset_marker_reader,(j_decompress_ptr cinfo))
int const JOCTET unsigned int datalen
write_tables_only(j_compress_ptr cinfo)
write_frame_header(j_compress_ptr cinfo)
jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
reset_marker_reader(j_decompress_ptr cinfo)
JMETHOD(void, start_pass,(j_compress_ptr cinfo, boolean gather_statistics))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
int JSAMPARRAY int int num_rows
jinit_c_prep_controller(j_compress_ptr cinfo, boolean need_full_buffer)
int JSAMPARRAY int int JDIMENSION num_cols
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, boolean is_pre_scan))
jinit_phuff_decoder(j_decompress_ptr cinfo)
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
forward_DCT(j_compress_ptr cinfo, jpeg_component_info *compptr, JSAMPARRAY sample_data, JBLOCKROW coef_blocks, JDIMENSION start_row, JDIMENSION start_col, JDIMENSION num_blocks)
start_output_pass(j_decompress_ptr cinfo)
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
pre_process_data(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail, JSAMPIMAGE output_buf, JDIMENSION *out_row_group_ctr, JDIMENSION out_row_groups_avail)
jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
typedef JMETHOD(void, inverse_DCT_method_ptr,(j_decompress_ptr cinfo, jpeg_component_info *compptr, JCOEFPTR coef_block, JSAMPARRAY output_buf, JDIMENSION output_col))
jinit_forward_dct(j_compress_ptr cinfo)
jinit_color_converter(j_compress_ptr cinfo)
start_input_pass(j_decompress_ptr cinfo)
write_file_trailer(j_compress_ptr cinfo)
finish_output_pass(j_decompress_ptr cinfo)
start_pass(j_decompress_ptr cinfo)
JSAMPARRAY JDIMENSION JDIMENSION in_rows_avail
decode_mcu(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
JMETHOD(void, start_input_pass,(j_decompress_ptr cinfo))
boolean need_context_rows
write_marker_byte(j_compress_ptr cinfo, int val)
jinit_c_coef_controller(j_compress_ptr cinfo, boolean need_full_buffer)
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
color_quantize(j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
prepare_for_output_pass(j_decompress_ptr cinfo)
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
decompress_data(j_decompress_ptr cinfo, JSAMPIMAGE output_buf)
JSAMPARRAY JDIMENSION * in_row_ctr
EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo))
boolean insufficient_data
jinit_upsampler(j_decompress_ptr cinfo)
JSAMPIMAGE JDIMENSION * in_row_group_ctr
jinit_marker_writer(j_compress_ptr cinfo)
GLubyte GLubyte GLubyte a
jpeg_marker_parser_method read_restart_marker
int JSAMPARRAY output_array
jinit_master_decompress(j_decompress_ptr cinfo)
boolean need_context_rows
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
JSAMPIMAGE JDIMENSION JDIMENSION in_row_groups_avail
JSAMPARRAY JDIMENSION JDIMENSION out_rows_avail