17 #define JPEG_INTERNALS
53 #ifdef D_MULTISCAN_FILES_SUPPORTED
57 if (cinfo->progress !=
NULL)
58 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
60 retcode = (*cinfo->
inputctl->consume_input) (cinfo);
66 if (cinfo->progress !=
NULL &&
68 if (++cinfo->progress->pass_counter >= cinfo->progress->pass_limit) {
75 ERREXIT(cinfo, JERR_NOT_COMPILED);
80 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
99 (*cinfo->
master->prepare_for_output_pass) (cinfo);
105 #ifdef QUANT_2PASS_SUPPORTED
110 if (cinfo->progress !=
NULL) {
113 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
123 (*cinfo->
master->finish_output_pass) (cinfo);
124 (*cinfo->
master->prepare_for_output_pass) (cinfo);
127 ERREXIT(cinfo, JERR_NOT_COMPILED);
158 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
160 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
165 if (cinfo->progress !=
NULL) {
168 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
173 (*cinfo->
main->process_data) (cinfo, scanlines, &row_ctr, max_lines);
191 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
193 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
198 if (cinfo->progress !=
NULL) {
201 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
206 if (max_lines < lines_per_iMCU_row)
207 ERREXIT(cinfo, JERR_BUFFER_SIZE);
210 if (! (*cinfo->
coef->decompress_data) (cinfo, data))
215 return lines_per_iMCU_row;
221 #ifdef D_MULTISCAN_FILES_SUPPORTED
232 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
234 if (scan_number <= 0)
259 (*cinfo->
master->finish_output_pass) (cinfo);
263 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
GLOBAL void jinit_master_decompress(j_decompress_ptr cinfo)
GLOBAL boolean jpeg_start_decompress(j_decompress_ptr cinfo)
struct jpeg_input_controller * inputctl
struct jpeg_d_main_controller * main
struct jpeg_d_coef_controller * coef
#define ERREXIT(cinfo, code)
#define JPEG_ROW_COMPLETED
GLOBAL JDIMENSION jpeg_read_scanlines(j_decompress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION max_lines)
GLsizei GLsizei GLenum GLenum const GLvoid * data
struct jpeg_decomp_master * master
#define WARNMS(cinfo, code)
GLOBAL JDIMENSION jpeg_read_raw_data(j_decompress_ptr cinfo, JSAMPIMAGE data, JDIMENSION max_lines)
#define ERREXIT1(cinfo, code, p1)
JDIMENSION output_scanline
LOCAL boolean output_pass_setup JPP((j_decompress_ptr cinfo))
LOCAL boolean output_pass_setup(j_decompress_ptr cinfo)
JDIMENSION total_iMCU_rows