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 220 typedef JMETHOD(
void, inverse_DCT_method_ptr,
267 #define MAX(a,b) ((a) > (b) ? (a) : (b)) 269 #define MIN(a,b) ((a) < (b) ? (a) : (b)) 282 #ifdef RIGHT_SHIFT_IS_UNSIGNED 283 #define SHIFT_TEMPS int32_t shift_temp; 284 #define RIGHT_SHIFT(x,shft) \ 285 ((shift_temp = (x)) < 0 ? \ 286 (shift_temp >> (shft)) | ((~((int32_t) 0)) << (32-(shft))) : \ 287 (shift_temp >> (shft))) 290 #define RIGHT_SHIFT(x,shft) ((x) >> (shft)) 296 #ifdef NEED_SHORT_EXTERNAL_NAMES 297 #define jinit_compress_master jICompress 298 #define jinit_c_master_control jICMaster 299 #define jinit_c_main_controller jICMainC 300 #define jinit_c_prep_controller jICPrepC 301 #define jinit_c_coef_controller jICCoefC 302 #define jinit_color_converter jICColor 303 #define jinit_downsampler jIDownsampler 304 #define jinit_forward_dct jIFDCT 305 #define jinit_huff_encoder jIHEncoder 306 #define jinit_phuff_encoder jIPHEncoder 307 #define jinit_marker_writer jIMWriter 308 #define jinit_master_decompress jIDMaster 309 #define jinit_d_main_controller jIDMainC 310 #define jinit_d_coef_controller jIDCoefC 311 #define jinit_d_post_controller jIDPostC 312 #define jinit_input_controller jIInCtlr 313 #define jinit_marker_reader jIMReader 314 #define jinit_huff_decoder jIHDecoder 315 #define jinit_phuff_decoder jIPHDecoder 316 #define jinit_inverse_dct jIIDCT 317 #define jinit_upsampler jIUpsampler 318 #define jinit_color_deconverter jIDColor 319 #define jinit_1pass_quantizer jI1Quant 320 #define jinit_2pass_quantizer jI2Quant 321 #define jinit_merged_upsampler jIMUpsampler 322 #define jinit_memory_mgr jIMemMgr 323 #define jdiv_round_up jDivRound 324 #define jround_up jRound 325 #define jcopy_sample_rows jCopySamples 326 #define jcopy_block_row jCopyBlocks 327 #define jzero_far jZeroFar 328 #define jpeg_zigzag_order jZIGTable 329 #define jpeg_natural_order jZAGTable 340 boolean need_full_buffer));
342 boolean need_full_buffer));
352 boolean need_full_buffer));
354 boolean need_full_buffer));
356 boolean need_full_buffer));
381 extern const int jpeg_zigzag_order[];
387 #ifdef INCOMPLETE_TYPES_BROKEN 388 #ifndef AM_MEMORY_MANAGER
JMETHOD(void, prepare_for_pass,(j_compress_ptr cinfo))
static void write_file_trailer(j_compress_ptr cinfo)
Definition: jcmarker.cpp:602
static void start_pass(j_decompress_ptr cinfo)
Definition: jddctmgr.cpp:89
static void prepare_for_output_pass(j_decompress_ptr cinfo)
Definition: jdmaster.cpp:438
void jcopy_block_row(JBLOCKROW input_row, JBLOCKROW output_row, JDIMENSION num_blocks)
Definition: jutils.cpp:145
Definition: jpegint.h:120
static int read_markers(j_decompress_ptr cinfo)
Definition: jdmarker.cpp:952
void jinit_d_coef_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition: jdcoefct.cpp:676
unsigned int discarded_bytes
Definition: jpegint.h:205
Definition: jpegint.h:113
boolean is_dummy_pass
Definition: jpegint.h:142
void jinit_upsampler(j_decompress_ptr cinfo)
Definition: jdsample.cpp:399
Definition: jpegint.h:137
void jinit_marker_writer(j_compress_ptr cinfo)
Definition: jcmarker.cpp:645
void jinit_c_coef_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition: jccoefct.cpp:405
jpeg_component_info JCOEFPTR coef_block
Definition: jdct.h:102
static antstruc target
Definition: agent_antenna.cpp:160
const int jpeg_natural_order[]
Definition: jutils.cpp:53
void jcopy_sample_rows(JSAMPARRAY input_array, int source_row, JSAMPARRAY output_array, int dest_row, int num_rows, JDIMENSION num_cols)
Definition: jutils.cpp:111
static void color_quantize(j_decompress_ptr cinfo, JSAMPARRAY input_buf, JSAMPARRAY output_buf, int num_rows)
Definition: jquant1.cpp:459
boolean(* jpeg_marker_parser_method)()
Definition: jpeglib.h:814
static void write_tables_only(j_compress_ptr cinfo)
Definition: jcmarker.cpp:616
static void write_frame_header(j_compress_ptr cinfo)
Definition: jcmarker.cpp:494
#define MAX_COMPONENTS
Definition: jmorecfg.h:35
long jround_up(long a, long b)
Definition: jutils.cpp:81
Definition: jpeglib.h:258
void jinit_color_deconverter(j_decompress_ptr cinfo)
Definition: jdcolor.cpp:304
Definition: jpegint.h:177
jvirt_barray_ptr * coef_arrays
Definition: jpegint.h:173
Definition: jpegint.h:232
boolean need_full_buffer
Definition: jpegint.h:338
void jinit_downsampler(j_compress_ptr cinfo)
Definition: jcsample.cpp:464
void jinit_marker_reader(j_decompress_ptr cinfo)
Definition: jdmarker.cpp:1262
static int decompress_data(j_decompress_ptr cinfo, JSAMPIMAGE output_buf)
Definition: jdcoefct.cpp:315
boolean call_pass_startup
Definition: jpegint.h:51
jpeg_component_info * compptr
Definition: jdct.h:102
long b
Definition: jpegint.h:371
Definition: jpegint.h:102
static void write_file_header(j_compress_ptr cinfo)
Definition: jcmarker.cpp:469
void jinit_huff_encoder(j_compress_ptr cinfo)
Definition: jchuff.cpp:891
boolean is_last_pass
Definition: jpegint.h:52
void jinit_huff_decoder(j_decompress_ptr cinfo)
Definition: jdhuff.cpp:635
void jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition: jcmainct.cpp:245
jpeg_component_info JCOEFPTR JSAMPARRAY JDIMENSION output_col
Definition: jdct.h:102
Definition: jpegint.h:158
int JSAMPARRAY int dest_row
Definition: jpegint.h:373
Definition: jmemmgr.cpp:166
void jinit_inverse_dct(j_decompress_ptr cinfo)
Definition: jddctmgr.cpp:247
Definition: jpegint.h:246
int datalen
Definition: mcastclient.c:41
void jinit_forward_dct(j_compress_ptr cinfo)
Definition: jcdctmgr.cpp:345
JBLOCKROW JDIMENSION num_blocks
Definition: jpegint.h:376
void jinit_merged_upsampler(j_decompress_ptr cinfo)
Definition: jdmerge.cpp:370
Definition: jpegint.h:189
boolean saw_SOF
Definition: jpegint.h:203
static void finish_output_pass(j_decompress_ptr cinfo)
Definition: jdmaster.cpp:498
void jinit_c_prep_controller(j_compress_ptr cinfo, boolean need_full_buffer)
Definition: jcprepct.cpp:315
int source_row
Definition: jpegint.h:373
Definition: jpegint.h:166
void jinit_d_post_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition: jdpostct.cpp:250
void jinit_compress_master(j_compress_ptr cinfo)
Definition: jcinit.cpp:30
JBLOCKROW output_row
Definition: jpegint.h:376
Definition: jmemmgr.cpp:150
Definition: jpegint.h:209
#define FAR
Definition: jmorecfg.h:215
size_t bytestozero
Definition: jpegint.h:378
int JSAMPARRAY int int num_rows
Definition: jpegint.h:373
static 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)
Definition: jcdctmgr.cpp:180
JCOEF * JCOEFPTR
Definition: jpeglib.h:80
int JSAMPARRAY int int JDIMENSION num_cols
Definition: jpegint.h:373
static int consume_data(j_decompress_ptr cinfo)
Definition: jdcoefct.cpp:244
#define JPP(arglist)
Definition: jpeglib.h:823
int next_restart_num
Definition: jpegint.h:204
JSAMPARRAY * JSAMPIMAGE
Definition: jpeglib.h:73
static void start_input_pass(j_decompress_ptr cinfo)
Definition: jdcoefct.cpp:107
void jinit_phuff_decoder(j_decompress_ptr cinfo)
Definition: jdphuff.cpp:641
Definition: jpeglib.h:273
Definition: eci2kep_test.cpp:33
void jinit_memory_mgr(j_common_ptr cinfo)
Definition: jmemmgr.cpp:1028
static void write_scan_header(j_compress_ptr cinfo)
Definition: jcmarker.cpp:551
static void write_marker_byte(j_compress_ptr cinfo, int val)
Definition: jcmarker.cpp:450
JSAMPROW * JSAMPARRAY
Definition: jpeglib.h:72
static void reset_marker_reader(j_decompress_ptr cinfo)
Definition: jdmarker.cpp:1242
Definition: jpeglib.h:121
static void pass_startup(j_compress_ptr cinfo)
Definition: jcmaster.cpp:489
static 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)
Definition: jcprepct.cpp:128
Definition: jpegint.h:254
static void write_marker_header(j_compress_ptr cinfo, int marker, unsigned int datalen)
Definition: jcmarker.cpp:438
JBLOCK * JBLOCKROW
Definition: jpeglib.h:76
void jinit_1pass_quantizer(j_decompress_ptr cinfo)
Definition: jquant1.cpp:821
void jinit_master_decompress(j_decompress_ptr cinfo)
Definition: jdmaster.cpp:543
static boolean decode_mcu(j_decompress_ptr cinfo, JBLOCKROW *MCU_data)
Definition: jdhuff.cpp:517
long jdiv_round_up(long a, long b)
Definition: jutils.cpp:72
J_BUF_MODE
Definition: jpegint.h:16
Definition: jpeglib.h:416
boolean need_context_rows
Definition: jpegint.h:242
void jinit_color_converter(j_compress_ptr cinfo)
Definition: jccolor.cpp:352
Definition: jpegint.h:225
static boolean compress_data(j_compress_ptr cinfo, JSAMPIMAGE input_buf)
Definition: jccoefct.cpp:143
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
Definition: jdct.h:102
unsigned int JDIMENSION
Definition: jmorecfg.h:171
static void prepare_for_pass(j_compress_ptr cinfo)
Definition: jcmaster.cpp:401
EXTERN(void) jinit_compress_master JPP((j_compress_ptr cinfo))
boolean insufficient_data
Definition: jpegint.h:216
void jinit_phuff_encoder(j_compress_ptr cinfo)
Definition: jcphuff.cpp:814
jpeg_marker_parser_method read_restart_marker
Definition: jpegint.h:197
int JSAMPARRAY output_array
Definition: jpegint.h:373
void jinit_2pass_quantizer(j_decompress_ptr cinfo)
Definition: jquant2.cpp:1244
void jzero_far(void *target, size_t bytestozero)
Definition: jutils.cpp:165
boolean saw_SOI
Definition: jpegint.h:202
boolean need_context_rows
Definition: jpegint.h:98
static void start_output_pass(j_decompress_ptr cinfo)
Definition: jdcoefct.cpp:119
void jinit_c_master_control(j_compress_ptr cinfo, boolean transcode_only)
Definition: jcmaster.cpp:543
void jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
Definition: jdmainct.cpp:476
boolean transcode_only
Definition: jpegint.h:336