13 #define JPEG_INTERNALS 23 #undef FULL_MAIN_BUFFER_SUPPORTED 42 #ifdef FULL_MAIN_BUFFER_SUPPORTED 57 #ifdef FULL_MAIN_BUFFER_SUPPORTED 77 main->cur_iMCU_row = 0;
78 main->rowgroup_ctr = 0;
79 main->suspended =
FALSE;
80 main->pass_mode = pass_mode;
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);
119 while (main->cur_iMCU_row < cinfo->total_iMCU_rows) {
121 if (main->rowgroup_ctr <
DCTSIZE)
122 (*cinfo->prep->pre_process_data) (cinfo,
123 input_buf, in_row_ctr, in_rows_avail,
124 main->buffer, &main->rowgroup_ctr,
131 if (main->rowgroup_ctr !=
DCTSIZE)
135 if (! (*cinfo->coef->compress_data) (cinfo, main->buffer)) {
142 if (! main->suspended) {
144 main->suspended =
TRUE;
151 if (main->suspended) {
153 main->suspended =
FALSE;
155 main->rowgroup_ctr = 0;
156 main->cur_iMCU_row++;
161 #ifdef FULL_MAIN_BUFFER_SUPPORTED 180 if (main->rowgroup_ctr == 0) {
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,
200 main->buffer, &main->rowgroup_ctr,
203 if (main->rowgroup_ctr <
DCTSIZE)
209 if (! (*cinfo->
coef->compress_data) (cinfo, main->buffer)) {
216 if (! main->suspended) {
218 main->suspended =
TRUE;
225 if (main->suspended) {
227 main->suspended =
FALSE;
232 main->rowgroup_ctr = 0;
233 main->cur_iMCU_row++;
253 SIZEOF(my_main_controller));
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
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)
JDIMENSION height_in_blocks
struct jpeg_c_coef_controller * coef
JDIMENSION total_iMCU_rows
typedef long(ZCALLBACK *tell_file_func) OF((voidpf opaque
struct jpeg_c_main_controller * main
if(!abbox) return FT_THROW(Invalid_Argument)
struct jvirt_sarray_control * jvirt_sarray_ptr
jpeg_component_info * comp_info
my_main_controller * my_main_ptr