19 #define JPEG_INTERNALS
42 cinfo->is_decompressor =
TRUE;
48 cinfo->progress =
NULL;
52 cinfo->quant_tbl_ptrs[i] =
NULL;
55 cinfo->dc_huff_tbl_ptrs[
i] =
NULL;
56 cinfo->ac_huff_tbl_ptrs[
i] =
NULL;
101 jpeg_marker_parser_method routine)
108 ERREXIT1(cinfo, JERR_UNKNOWN_MARKER, marker_code);
150 if (cid0 == 1 && cid1 == 2 && cid2 == 3)
152 else if (cid0 == 82 && cid1 == 71 && cid2 == 66)
155 TRACEMS3(cinfo, 1, JTRC_UNKNOWN_IDS, cid0, cid1, cid2);
202 #ifdef QUANT_2PASS_SUPPORTED
250 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
295 switch (cinfo->global_state) {
298 (*cinfo->
inputctl->reset_input_controller) (cinfo);
300 (*cinfo->
src->init_source) (cinfo);
304 retcode = (*cinfo->
inputctl->consume_input) (cinfo);
323 retcode = (*cinfo->
inputctl->consume_input) (cinfo);
326 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
342 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
357 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
378 ERREXIT(cinfo, JERR_TOO_LITTLE_DATA);
379 (*cinfo->
master->finish_output_pass) (cinfo);
386 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
394 (*cinfo->
src->term_source) (cinfo);
boolean do_block_smoothing
struct jpeg_input_controller * inputctl
jpeg_component_info * comp_info
boolean do_fancy_upsampling
boolean enable_2pass_quant
struct jpeg_marker_reader * marker
boolean enable_external_quant
#define ERREXIT(cinfo, code)
int desired_number_of_colors
boolean two_pass_quantize
GLOBAL void jinit_marker_reader(j_decompress_ptr cinfo)
GLOBAL void jinit_memory_mgr(j_common_ptr cinfo)
J_COLOR_SPACE out_color_space
GLOBAL void jpeg_create_decompress(j_decompress_ptr cinfo)
GLOBAL void jpeg_destroy(j_common_ptr cinfo)
#define JPEG_HEADER_TABLES_ONLY
GLOBAL boolean jpeg_input_complete(j_decompress_ptr cinfo)
LOCAL void default_decompress_parms(j_decompress_ptr cinfo)
GLOBAL void jpeg_abort_decompress(j_decompress_ptr cinfo)
struct jpeg_decomp_master * master
boolean enable_1pass_quant
#define WARNMS1(cinfo, code, p1)
J_DITHER_MODE dither_mode
GLOBAL boolean jpeg_finish_decompress(j_decompress_ptr cinfo)
#define ERREXIT1(cinfo, code, p1)
jpeg_marker_parser_method process_COM
struct jpeg_source_mgr * src
jpeg_marker_parser_method process_APPn[16]
JDIMENSION output_scanline
static WindowRef ValidModeCallbackProc inCallback OSStatus err
GLOBAL void jpeg_destroy_decompress(j_decompress_ptr cinfo)
GLOBAL void jpeg_abort(j_common_ptr cinfo)
#define TRACEMS3(cinfo, lvl, code, p1, p2, p3)
GLOBAL void jpeg_set_marker_processor(j_decompress_ptr cinfo, int marker_code, jpeg_marker_parser_method routine)
GLOBAL boolean jpeg_has_multiple_scans(j_decompress_ptr cinfo)
GLOBAL int jpeg_read_header(j_decompress_ptr cinfo, boolean require_image)
#define MEMZERO(target, size)
J_COLOR_SPACE jpeg_color_space
GLOBAL int jpeg_consume_input(j_decompress_ptr cinfo)