10 #define JPEG_INTERNALS 20 #undef FULL_MAIN_BUFFER_SUPPORTED 39 #ifdef FULL_MAIN_BUFFER_SUPPORTED 54 #ifdef FULL_MAIN_BUFFER_SUPPORTED 71 if (cinfo->raw_data_in)
81 #ifdef FULL_MAIN_BUFFER_SUPPORTED 82 if (main->whole_image[0] != NULL)
83 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
87 #ifdef FULL_MAIN_BUFFER_SUPPORTED 91 if (main->whole_image[0] == NULL)
92 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
93 main->
pub.process_data = process_data_buffer_main;
97 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
119 (*cinfo->prep->pre_process_data) (cinfo,
132 if (! (*cinfo->coef->compress_data) (cinfo, main->
buffer)) {
158 #ifdef FULL_MAIN_BUFFER_SUPPORTED 180 main->
buffer[ci] = (*cinfo->mem->access_virt_sarray)
195 (*cinfo->
prep->pre_process_data) (cinfo,
206 if (! (*cinfo->
coef->compress_data) (cinfo, main->
buffer)) {
255 if (cinfo->raw_data_in)
262 #ifdef FULL_MAIN_BUFFER_SUPPORTED 265 for (ci = 0,
compptr = cinfo->comp_info; ci < cinfo->num_components;
267 main->whole_image[ci] = (*cinfo->mem->request_virt_sarray)
275 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
278 #ifdef FULL_MAIN_BUFFER_SUPPORTED 279 main->whole_image[0] = NULL;
282 for (ci = 0,
compptr = cinfo->comp_info; ci < cinfo->num_components;
284 main->
buffer[ci] = (*cinfo->mem->alloc_sarray)
struct jpeg_c_prep_controller * prep
struct jpeg_c_main_controller pub
jround_up(long a, long b)
struct jpeg_common_struct * j_common_ptr
METHODDEF(void) process_data_simple_main JPP((j_compress_ptr cinfo
#define ERREXIT(cinfo, code)
start_pass_main(j_compress_ptr cinfo, J_BUF_MODE pass_mode)
my_main_controller * my_main_ptr
jpeg_component_info * compptr
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)
JSAMPARRAY JDIMENSION JDIMENSION in_rows_avail
JSAMPARRAY JDIMENSION * in_row_ctr
jpeg_component_info * comp_info