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