13 #define JPEG_INTERNALS
23 #undef FULL_MAIN_BUFFER_SUPPORTED
42 #ifdef FULL_MAIN_BUFFER_SUPPORTED
57 #ifdef FULL_MAIN_BUFFER_SUPPORTED
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
181 for (ci = 0, compptr = cinfo->
comp_info; ci < cinfo->num_components;
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)) {
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)
METHODDEF void start_pass_main(j_compress_ptr cinfo, J_BUF_MODE pass_mode)
struct jpeg_c_prep_controller * prep
METHODDEF void process_data_simple_main(j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail)
struct jpeg_c_main_controller pub
struct jpeg_common_struct * j_common_ptr
#define ERREXIT(cinfo, code)
JDIMENSION width_in_blocks
JSAMPARRAY buffer[MAX_COMPONENTS]
JDIMENSION height_in_blocks
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
METHODDEF void process_data_simple_main JPP((j_compress_ptr cinfo, JSAMPARRAY input_buf, JDIMENSION *in_row_ctr, JDIMENSION in_rows_avail))
struct jpeg_c_main_controller * main
GLOBAL void jinit_c_main_controller(j_compress_ptr cinfo, boolean need_full_buffer)
if(!ValidDisplayID(prefInfo.prefDisplayID)) prefInfo.prefDisplayID
jpeg_component_info * comp_info
GLOBAL long jround_up(long a, long b)
my_main_controller * my_main_ptr