13 #define JPEG_INTERNALS 23 #undef FULL_MAIN_BUFFER_SUPPORTED 42 #ifdef FULL_MAIN_BUFFER_SUPPORTED 57 #ifdef FULL_MAIN_BUFFER_SUPPORTED 74 if (cinfo->raw_data_in)
84 #ifdef FULL_MAIN_BUFFER_SUPPORTED 85 if (main->whole_image[0] != NULL)
86 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
90 #ifdef FULL_MAIN_BUFFER_SUPPORTED 94 if (main->whole_image[0] == NULL)
95 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
96 main->
pub.process_data = process_data_buffer_main;
100 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
122 (*cinfo->prep->pre_process_data) (cinfo,
123 input_buf, in_row_ctr, in_rows_avail,
135 if (! (*cinfo->coef->compress_data) (cinfo, main->
buffer)) {
161 #ifdef FULL_MAIN_BUFFER_SUPPORTED 183 main->
buffer[ci] = (*cinfo->mem->access_virt_sarray)
198 (*cinfo->
prep->pre_process_data) (cinfo,
199 input_buf, in_row_ctr, in_rows_avail,
209 if (! (*cinfo->
coef->compress_data) (cinfo, main->
buffer)) {
258 if (cinfo->raw_data_in)
264 if (need_full_buffer) {
265 #ifdef FULL_MAIN_BUFFER_SUPPORTED 268 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
270 main->whole_image[ci] = (*cinfo->mem->request_virt_sarray)
278 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
281 #ifdef FULL_MAIN_BUFFER_SUPPORTED 282 main->whole_image[0] = NULL;
285 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components;
287 main->
buffer[ci] = (*cinfo->mem->alloc_sarray)
struct jpeg_c_prep_controller * prep
struct jpeg_c_main_controller pub
jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
struct jpeg_common_struct * j_common_ptr
process_data_simple_main(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail)
#define ERREXIT(cinfo, code)
start_pass_main(j_decompress_ptr cinfo, J_BUF_MODE pass_mode)
jpeg_component_info * compptr
JDIMENSION width_in_blocks
jround_up(long a, long b)
JSAMPARRAY buffer[MAX_COMPONENTS]
JDIMENSION height_in_blocks
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
struct jpeg_c_main_controller * main
png_infop png_bytep buffer
jpeg_component_info * comp_info
my_main_controller * my_main_ptr