19 #define JPEG_INTERNALS
42 cinfo->is_decompressor =
FALSE;
48 cinfo->progress =
NULL;
51 cinfo->comp_info =
NULL;
54 cinfo->quant_tbl_ptrs[i] =
NULL;
57 cinfo->dc_huff_tbl_ptrs[
i] =
NULL;
58 cinfo->ac_huff_tbl_ptrs[
i] =
NULL;
61 cinfo->input_gamma = 1.0;
140 ERREXIT(cinfo, JERR_TOO_LITTLE_DATA);
141 (*cinfo->
master->finish_pass) (cinfo);
143 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
146 (*cinfo->
master->prepare_for_pass) (cinfo);
148 if (cinfo->progress !=
NULL) {
149 cinfo->progress->pass_counter = (long) iMCU_row;
151 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
157 ERREXIT(cinfo, JERR_CANT_SUSPEND);
159 (*cinfo->
master->finish_pass) (cinfo);
162 (*cinfo->
marker->write_file_trailer) (cinfo);
163 (*cinfo->
dest->term_destination) (cinfo);
178 const JOCTET *dataptr,
unsigned int datalen)
184 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
186 (*cinfo->
marker->write_any_marker) (cinfo, marker, dataptr, datalen);
215 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
219 (*cinfo->
dest->init_destination) (cinfo);
223 (*cinfo->
marker->write_tables_only) (cinfo);
225 (*cinfo->
dest->term_destination) (cinfo);
JHUFF_TBL * dc_huff_tbl_ptrs[NUM_HUFF_TBLS]
struct jpeg_common_struct * j_common_ptr
#define ERREXIT(cinfo, code)
GLOBAL void jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
GLOBAL void jpeg_write_marker(j_compress_ptr cinfo, int marker, const JOCTET *dataptr, unsigned int datalen)
JHUFF_TBL * ac_huff_tbl_ptrs[NUM_HUFF_TBLS]
GLOBAL void jinit_memory_mgr(j_common_ptr cinfo)
GLOBAL void jpeg_destroy(j_common_ptr cinfo)
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
GLOBAL void jpeg_finish_compress(j_compress_ptr cinfo)
struct jpeg_destination_mgr * dest
struct jpeg_marker_writer * marker
#define ERREXIT1(cinfo, code, p1)
GLOBAL void jinit_marker_writer(j_compress_ptr cinfo)
static WindowRef ValidModeCallbackProc inCallback OSStatus err
JQUANT_TBL * quant_tbl_ptrs[NUM_QUANT_TBLS]
GLOBAL void jpeg_create_compress(j_compress_ptr cinfo)
GLOBAL void jpeg_abort(j_common_ptr cinfo)
GLOBAL void jpeg_destroy_compress(j_compress_ptr cinfo)
GLOBAL void jpeg_abort_compress(j_compress_ptr cinfo)
GLOBAL void jpeg_write_tables(j_compress_ptr cinfo)
#define MEMZERO(target, size)
struct jpeg_comp_master * master