17 #define JPEG_INTERNALS
41 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
48 (*cinfo->
dest->init_destination) (cinfo);
52 (*cinfo->
master->prepare_for_pass) (cinfo);
83 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
85 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
88 if (cinfo->progress !=
NULL) {
90 cinfo->progress->pass_limit = (
long) cinfo->
image_height;
91 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
100 (*cinfo->
master->pass_startup) (cinfo);
104 if (num_lines > rows_left)
105 num_lines = rows_left;
108 (*cinfo->
main->process_data) (cinfo, scanlines, &row_ctr, num_lines);
126 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
128 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
133 if (cinfo->progress !=
NULL) {
135 cinfo->progress->pass_limit = (
long) cinfo->
image_height;
136 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
145 (*cinfo->
master->pass_startup) (cinfo);
149 if (num_lines < lines_per_iMCU_row)
150 ERREXIT(cinfo, JERR_BUFFER_SIZE);
153 if (! (*cinfo->
coef->compress_data) (cinfo, data)) {
160 return lines_per_iMCU_row;
GLOBAL void jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)
#define ERREXIT(cinfo, code)
GLOBAL void jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
boolean call_pass_startup
GLOBAL void jinit_compress_master(j_compress_ptr cinfo)
struct jpeg_c_coef_controller * coef
GLsizei GLsizei GLenum GLenum const GLvoid * data
struct jpeg_destination_mgr * dest
struct jpeg_c_main_controller * main
#define WARNMS(cinfo, code)
#define ERREXIT1(cinfo, code, p1)
GLOBAL JDIMENSION jpeg_write_scanlines(j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
GLOBAL JDIMENSION jpeg_write_raw_data(j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines)
struct jpeg_comp_master * master