Home | History | Annotate | Download | only in libjpeg

Lines Matching defs:mainp

72   my_main_ptr mainp = (my_main_ptr) cinfo->main;
78 mainp->cur_iMCU_row = 0; /* initialize counters */
79 mainp->rowgroup_ctr = 0;
80 mainp->suspended = FALSE;
81 mainp->pass_mode = pass_mode; /* save mode for use by process_data */
86 if (mainp->whole_image[0] != NULL)
89 mainp->pub.process_data = process_data_simple_main;
95 if (mainp->whole_image[0] == NULL)
97 mainp->pub.process_data = process_data_buffer_main;
118 my_main_ptr mainp = (my_main_ptr) cinfo->main;
120 while (mainp->cur_iMCU_row < cinfo->total_iMCU_rows) {
122 if (mainp->rowgroup_ctr < (JDIMENSION) cinfo->min_DCT_v_scaled_size)
125 mainp->buffer, &mainp->rowgroup_ctr,
132 if (mainp->rowgroup_ctr != (JDIMENSION) cinfo->min_DCT_v_scaled_size)
136 if (! (*cinfo->coef->compress_data) (cinfo, mainp->buffer)) {
143 if (! mainp->suspended) {
145 mainp->suspended = TRUE;
152 if (mainp->suspended) {
154 mainp->suspended = FALSE;
156 mainp->rowgroup_ctr = 0;
157 mainp->cur_iMCU_row++;
174 my_main_ptr mainp = (my_main_ptr) cinfo->main;
177 boolean writing = (mainp->pass_mode != JBUF_CRANK_DEST);
179 while (mainp->cur_iMCU_row < cinfo->total_iMCU_rows) {
181 if (mainp->rowgroup_ctr == 0) {
184 mainp->buffer[ci] = (*cinfo->mem->access_virt_sarray)
185 ((j_common_ptr) cinfo, mainp->whole_image[ci], mainp->cur_iMCU_row *
194 mainp->rowgroup_ctr = (JDIMENSION) cinfo->min_DCT_v_scaled_size;
203 mainp->buffer, &mainp->rowgroup_ctr,
206 if (mainp->rowgroup_ctr < (JDIMENSION) cinfo->min_DCT_v_scaled_size)
211 if (mainp->pass_mode != JBUF_SAVE_SOURCE) {
212 if (! (*cinfo->coef->compress_data) (cinfo, mainp->buffer)) {
219 if (! mainp->suspended) {
221 mainp->suspended = TRUE;
228 if (mainp->suspended) {
230 mainp->suspended = FALSE;
235 mainp->rowgroup_ctr = 0;
236 mainp->cur_iMCU_row++;
250 my_main_ptr mainp;
254 mainp = (my_main_ptr)
257 cinfo->main = &mainp->pub;
258 mainp->pub.start_pass = start_pass_main;
273 mainp->whole_image[ci] = (*cinfo->mem->request_virt_sarray)
286 mainp->whole_image[0] = NULL; /* flag for no virtual arrays */
291 mainp->buffer[ci] = (*cinfo->mem->alloc_sarray)