42 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
49 (*cinfo->dest->init_destination) (cinfo);
53 (*cinfo->master->prepare_for_pass) (cinfo);
57 cinfo->next_scanline = 0;
84 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
85 if (cinfo->next_scanline >= cinfo->image_height)
86 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
89 if (cinfo->progress !=
NULL) {
90 cinfo->progress->pass_counter = (
long) cinfo->next_scanline;
91 cinfo->progress->pass_limit = (
long) cinfo->image_height;
92 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
100 if (cinfo->master->call_pass_startup)
101 (*cinfo->master->pass_startup) (cinfo);
104 rows_left = cinfo->image_height - cinfo->next_scanline;
110 cinfo->next_scanline += row_ctr;
127 ERREXIT1(cinfo, JERR_BAD_STATE, cinfo->global_state);
128 if (cinfo->next_scanline >= cinfo->image_height) {
129 WARNMS(cinfo, JWRN_TOO_MUCH_DATA);
134 if (cinfo->progress !=
NULL) {
135 cinfo->progress->pass_counter = (
long) cinfo->next_scanline;
136 cinfo->progress->pass_limit = (
long) cinfo->image_height;
137 (*cinfo->progress->progress_monitor) ((
j_common_ptr) cinfo);
145 if (cinfo->master->call_pass_startup)
146 (*cinfo->master->pass_startup) (cinfo);
149 lines_per_iMCU_row = cinfo->max_v_samp_factor * cinfo->min_DCT_v_scaled_size;
151 ERREXIT(cinfo, JERR_BUFFER_SIZE);
154 if (! (*cinfo->coef->compress_data) (cinfo,
data)) {
160 cinfo->next_scanline += lines_per_iMCU_row;
161 return lines_per_iMCU_row;
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
jpeg_suppress_tables(j_compress_ptr cinfo, boolean suppress)
jpeg_write_raw_data(j_compress_ptr cinfo, JSAMPIMAGE data, JDIMENSION num_lines)
jpeg_write_scanlines(j_compress_ptr cinfo, JSAMPARRAY scanlines, JDIMENSION num_lines)
jpeg_start_compress(j_compress_ptr cinfo, boolean write_all_tables)
jinit_compress_master(j_compress_ptr cinfo)
#define ERREXIT1(cinfo, code, p1)
#define WARNMS(cinfo, code)
JSAMPARRAY JDIMENSION num_lines