10 #define JPEG_INTERNALS 34 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
41 (*cinfo->dest->init_destination) (cinfo);
45 (*cinfo->master->prepare_for_pass) (cinfo);
49 cinfo->next_scanline = 0;
76 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
77 if (cinfo->next_scanline >= cinfo->image_height)
78 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
81 if (cinfo->progress != NULL) {
82 cinfo->progress->pass_counter = (long) cinfo->next_scanline;
83 cinfo->progress->pass_limit = (
long) cinfo->image_height;
84 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
92 if (cinfo->master->call_pass_startup)
93 (*cinfo->master->pass_startup) (cinfo);
96 rows_left = cinfo->image_height - cinfo->next_scanline;
102 cinfo->next_scanline += row_ctr;
119 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
120 if (cinfo->next_scanline >= cinfo->image_height) {
121 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
126 if (cinfo->progress != NULL) {
127 cinfo->progress->pass_counter = (long) cinfo->next_scanline;
128 cinfo->progress->pass_limit = (
long) cinfo->image_height;
129 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
137 if (cinfo->master->call_pass_startup)
138 (*cinfo->master->pass_startup) (cinfo);
141 lines_per_iMCU_row = cinfo->max_v_samp_factor *
DCTSIZE;
143 ERREXIT(cinfo, JERR_BUFFER_SIZE);
146 if (! (*cinfo->coef->compress_data) (cinfo,
data)) {
152 cinfo->next_scanline += lines_per_iMCU_row;
153 return lines_per_iMCU_row;
#define ERREXIT(cinfo, code)
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
jpeg_write_scanlines(j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
JSAMPARRAY JDIMENSION num_lines
jinit_compress_master(j_compress_ptr cinfo)
#define WARNMS(cinfo, code)
#define ERREXIT1(cinfo, code, p1)
jpeg_write_raw_data(j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines)
GLsizei GLsizei GLenum GLenum const GLvoid * data
jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)