26#define CSTATE_START 100
27#define CSTATE_SCANNING 101
28#define CSTATE_RAW_OK 102
29#define CSTATE_WRCOEFS 103
30#define DSTATE_START 200
31#define DSTATE_INHEADER 201
32#define DSTATE_READY 202
33#define DSTATE_PRELOAD 203
34#define DSTATE_PRESCAN 204
35#define DSTATE_SCANNING 205
36#define DSTATE_RAW_OK 206
37#define DSTATE_BUFIMAGE 207
38#define DSTATE_BUFPOST 208
39#define DSTATE_RDCOEFS 209
40#define DSTATE_STOPPING 210
273#define RANGE_CENTER (CENTERJSAMPLE << RANGE_BITS)
279#define MAX(a,b) ((a) > (b) ? (a) : (b))
281#define MIN(a,b) ((a) < (b) ? (a) : (b))
294#ifdef RIGHT_SHIFT_IS_UNSIGNED
295#define SHIFT_TEMPS INT32 shift_temp;
296#define RIGHT_SHIFT(x,shft) \
297 ((shift_temp = (x)) < 0 ? \
298 (shift_temp >> (shft)) | ((~((INT32) 0)) << (32-(shft))) : \
299 (shift_temp >> (shft)))
302#define RIGHT_SHIFT(x,shft) ((x) >> (shft))
310#define DESCALE(x,n) RIGHT_SHIFT((x) + ((INT32) 1 << ((n)-1)), n)
315#ifdef NEED_SHORT_EXTERNAL_NAMES
316#define jinit_compress_master jICompress
317#define jinit_c_master_control jICMaster
318#define jinit_c_main_controller jICMainC
319#define jinit_c_prep_controller jICPrepC
320#define jinit_c_coef_controller jICCoefC
321#define jinit_color_converter jICColor
322#define jinit_downsampler jIDownsampler
323#define jinit_forward_dct jIFDCT
324#define jinit_huff_encoder jIHEncoder
325#define jinit_arith_encoder jIAEncoder
326#define jinit_marker_writer jIMWriter
327#define jinit_master_decompress jIDMaster
328#define jinit_d_main_controller jIDMainC
329#define jinit_d_coef_controller jIDCoefC
330#define jinit_d_post_controller jIDPostC
331#define jinit_input_controller jIInCtlr
332#define jinit_marker_reader jIMReader
333#define jinit_huff_decoder jIHDecoder
334#define jinit_arith_decoder jIADecoder
335#define jinit_inverse_dct jIIDCT
336#define jinit_upsampler jIUpsampler
337#define jinit_color_deconverter jIDColor
338#define jinit_1pass_quantizer jI1Quant
339#define jinit_2pass_quantizer jI2Quant
340#define jinit_merged_upsampler jIMUpsampler
341#define jinit_memory_mgr jIMemMgr
342#define jdiv_round_up jDivRound
343#define jround_up jRound
344#define jzero_far jZeroFar
345#define jcopy_sample_rows jCopySamples
346#define jcopy_block_row jCopyBlocks
347#define jpeg_zigzag_order jZIGTable
348#define jpeg_natural_order jZAGTable
349#define jpeg_natural_order7 jZAG7Table
350#define jpeg_natural_order6 jZAG6Table
351#define jpeg_natural_order5 jZAG5Table
352#define jpeg_natural_order4 jZAG4Table
353#define jpeg_natural_order3 jZAG3Table
354#define jpeg_natural_order2 jZAG2Table
355#define jpeg_aritab jAriTab
367#ifndef NEED_FAR_POINTERS
368#define FMEMZERO(target,size) MEMZERO(target,size)
371#define FMEMZERO(target,size) _fmemset((void FAR *)(target), 0, (size_t)(size))
374#define FMEMZERO(target,size) jzero_far(target, size)
441#ifdef INCOMPLETE_TYPES_BROKEN
442#ifndef AM_MEMORY_MANAGER
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
jinit_arith_encoder(j_compress_ptr cinfo)
finish_pass(j_compress_ptr cinfo)
encode_mcu(j_compress_ptr cinfo, JBLOCKROW *MCU_data)
start_pass(j_compress_ptr cinfo, boolean gather_statistics)
jinit_c_coef_controller(j_compress_ptr cinfo, boolean need_full_buffer)
compress_data(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
jinit_color_converter(j_compress_ptr cinfo)
jinit_forward_dct(j_compress_ptr cinfo)
jinit_huff_encoder(j_compress_ptr cinfo)
jinit_compress_master(j_compress_ptr cinfo)
jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
write_file_header(j_compress_ptr cinfo)
write_frame_header(j_compress_ptr cinfo)
write_marker_byte(j_compress_ptr cinfo, int val)
write_marker_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
jinit_marker_writer(j_compress_ptr cinfo)
write_file_trailer(j_compress_ptr cinfo)
write_scan_header(j_compress_ptr cinfo)
write_tables_only(j_compress_ptr cinfo)
pass_startup(j_compress_ptr cinfo)
jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
prepare_for_pass(j_compress_ptr cinfo)
jinit_c_prep_controller(j_compress_ptr cinfo, boolean need_full_buffer)
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_downsampler(j_compress_ptr cinfo)
decode_mcu(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
jinit_arith_decoder(j_decompress_ptr cinfo)
jinit_d_coef_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
start_input_pass(j_decompress_ptr cinfo)
start_output_pass(j_decompress_ptr cinfo)
jinit_color_deconverter(j_decompress_ptr cinfo)
jpeg_component_info JCOEFPTR coef_block
jpeg_component_info JCOEFPTR JSAMPARRAY JDIMENSION output_col
JSAMPARRAY JDIMENSION start_col
jpeg_component_info * compptr
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
jinit_inverse_dct(j_decompress_ptr cinfo)
jinit_huff_decoder(j_decompress_ptr cinfo)
static const int jpeg_zigzag_order[8][8]
jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
reset_marker_reader(j_decompress_ptr cinfo)
jinit_marker_reader(j_decompress_ptr cinfo)
read_markers(j_decompress_ptr cinfo)
jinit_master_decompress(j_decompress_ptr cinfo)
finish_output_pass(j_decompress_ptr cinfo)
prepare_for_output_pass(j_decompress_ptr cinfo)
jinit_d_post_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
jinit_upsampler(j_decompress_ptr cinfo)
jinit_memory_mgr(j_common_ptr cinfo)
#define JMETHOD(type, methodname, arglist)
const int jpeg_natural_order5[]
const int jpeg_natural_order3[]
const int jpeg_natural_order4[]
const int jpeg_natural_order[]
const int jpeg_natural_order6[]
const int jpeg_natural_order2[]
EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo))
const int jpeg_natural_order7[]
int JSAMPARRAY int int num_rows
JBLOCKROW JDIMENSION num_blocks
int JSAMPARRAY int int JDIMENSION num_cols
int JSAMPARRAY output_array
const INT32 jpeg_aritab[]
int JSAMPARRAY int dest_row
int const JOCTET unsigned int datalen
jdiv_round_up(long a, long b)
jcopy_block_row(JBLOCKROW input_row, JBLOCKROW output_row, JDIMENSION num_blocks)
jround_up(long a, long b)
jcopy_sample_rows(JSAMPARRAY input_array, int source_row, JSAMPARRAY output_array, int dest_row, int num_rows, JDIMENSION num_cols)
static void process_data(ID3DXFileData *xfile_data, int level)
JMETHOD(boolean, compress_data,(j_compress_ptr cinfo, JSAMPIMAGE input_buf))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, process_data,(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail))
JMETHOD(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))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
JMETHOD(void, color_convert,(j_compress_ptr cinfo, JSAMPARRAY input_buf, JSAMPIMAGE output_buf, JDIMENSION output_row, int num_rows))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
JMETHOD(void, color_convert,(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION input_row, JSAMPARRAY output_buf, int num_rows))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, boolean is_pre_scan))
JMETHOD(void, new_color_map,(j_decompress_ptr cinfo))
JMETHOD(void, finish_pass,(j_decompress_ptr cinfo))
JMETHOD(void, color_quantize,(j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows))
boolean call_pass_startup
JMETHOD(void, finish_pass,(j_compress_ptr cinfo))
JMETHOD(void, pass_startup,(j_compress_ptr cinfo))
JMETHOD(void, prepare_for_pass,(j_compress_ptr cinfo))
JMETHOD(int, consume_data,(j_decompress_ptr cinfo))
JMETHOD(int, decompress_data,(j_decompress_ptr cinfo, JSAMPIMAGE output_buf))
jvirt_barray_ptr * coef_arrays
JMETHOD(void, start_input_pass,(j_decompress_ptr cinfo))
JMETHOD(void, start_output_pass,(j_decompress_ptr cinfo))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, process_data,(j_decompress_ptr cinfo, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo, J_BUF_MODE pass_mode))
JMETHOD(void, post_process_data,(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
JMETHOD(void, finish_output_pass,(j_decompress_ptr cinfo))
JMETHOD(void, prepare_for_output_pass,(j_decompress_ptr cinfo))
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
JMETHOD(void, downsample,(j_compress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION in_row_index, JSAMPIMAGE output_buf, JDIMENSION out_row_group_index))
boolean need_context_rows
JMETHOD(boolean, decode_mcu,(j_decompress_ptr cinfo, JBLOCKROW *MCU_data))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
JMETHOD(void, finish_pass,(j_decompress_ptr cinfo))
JMETHOD(void, finish_pass,(j_compress_ptr cinfo))
JMETHOD(boolean, encode_mcu,(j_compress_ptr cinfo, JBLOCKROW *MCU_data))
JMETHOD(void, start_pass,(j_compress_ptr cinfo, boolean gather_statistics))
forward_DCT_ptr forward_DCT[MAX_COMPONENTS]
JMETHOD(void, start_pass,(j_compress_ptr cinfo))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
inverse_DCT_method_ptr inverse_DCT[MAX_COMPONENTS]
jpeg_marker_parser_method read_restart_marker
JMETHOD(int, read_markers,(j_decompress_ptr cinfo))
unsigned int discarded_bytes
JMETHOD(void, reset_marker_reader,(j_decompress_ptr cinfo))
JMETHOD(void, write_frame_header,(j_compress_ptr cinfo))
JMETHOD(void, write_marker_byte,(j_compress_ptr cinfo, int val))
JMETHOD(void, write_scan_header,(j_compress_ptr cinfo))
JMETHOD(void, write_marker_header,(j_compress_ptr cinfo, int marker, unsigned int datalen))
JMETHOD(void, write_tables_only,(j_compress_ptr cinfo))
JMETHOD(void, write_file_header,(j_compress_ptr cinfo))
JMETHOD(void, write_file_trailer,(j_compress_ptr cinfo))
JMETHOD(void, start_pass,(j_decompress_ptr cinfo))
JMETHOD(void, upsample,(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail))
boolean need_context_rows