10 #define JPEG_INTERNALS 19 #undef FULL_MAIN_BUFFER_SUPPORTED 38 #ifdef FULL_MAIN_BUFFER_SUPPORTED 53 #ifdef FULL_MAIN_BUFFER_SUPPORTED 55 process_data_buffer_main
JPP(
70 if (cinfo->raw_data_in)
return;
80 #ifdef FULL_MAIN_BUFFER_SUPPORTED 81 if (main->whole_image[0] !=
nullptr)
82 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
86 #ifdef FULL_MAIN_BUFFER_SUPPORTED 90 if (main->whole_image[0] ==
nullptr)
91 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
92 main->
pub.process_data = process_data_buffer_main;
96 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
118 (*cinfo->prep->pre_process_data)(
119 cinfo, input_buf, in_row_ctr, in_rows_avail, main->
buffer,
130 if (!(*cinfo->coef->compress_data)(cinfo, main->
buffer))
161 #ifdef FULL_MAIN_BUFFER_SUPPORTED 169 process_data_buffer_main(
186 main->
buffer[ci] = (*cinfo->mem->access_virt_sarray)(
205 (*cinfo->
prep->pre_process_data)(
206 cinfo, input_buf, in_row_ctr, in_rows_avail, main->
buffer,
216 if (!(*cinfo->
coef->compress_data)(cinfo, main->
buffer))
271 if (cinfo->raw_data_in)
return;
276 if (need_full_buffer)
278 #ifdef FULL_MAIN_BUFFER_SUPPORTED 281 for (ci = 0,
compptr = cinfo->comp_info; ci < cinfo->num_components;
284 main->whole_image[ci] = (*cinfo->mem->request_virt_sarray)(
294 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
299 #ifdef FULL_MAIN_BUFFER_SUPPORTED 300 main->whole_image[0] =
nullptr;
303 for (ci = 0,
compptr = cinfo->comp_info; ci < cinfo->num_components;
306 main->
buffer[ci] = (*cinfo->mem->alloc_sarray)(
struct jpeg_c_prep_controller * prep
struct jpeg_c_main_controller pub
process_data_simple_main JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail))
jround_up(long a, long b)
struct jpeg_common_struct * j_common_ptr
#define ERREXIT(cinfo, code)
start_pass_main(j_compress_ptr cinfo, J_BUF_MODE pass_mode)
my_main_controller * my_main_ptr
JDIMENSION width_in_blocks
process_data_simple_main(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail)
JSAMPARRAY buffer[MAX_COMPONENTS]
JDIMENSION height_in_blocks
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
struct jpeg_c_main_controller * main
jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
jpeg_component_info * comp_info
jpeg_component_info * compptr