Lines Matching refs:main_ptr
137 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in alloc_funny_pointers() local
146 main_ptr->xbuffer[0] = (JSAMPIMAGE) in alloc_funny_pointers()
149 main_ptr->xbuffer[1] = main_ptr->xbuffer[0] + cinfo->num_components; in alloc_funny_pointers()
162 main_ptr->xbuffer[0][ci] = xbuf; in alloc_funny_pointers()
164 main_ptr->xbuffer[1][ci] = xbuf; in alloc_funny_pointers()
178 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in make_funny_pointers() local
188 xbuf0 = main_ptr->xbuffer[0][ci]; in make_funny_pointers()
189 xbuf1 = main_ptr->xbuffer[1][ci]; in make_funny_pointers()
191 buf = main_ptr->buffer[ci]; in make_funny_pointers()
219 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in set_bottom_pointers() local
236 main_ptr->rowgroups_avail = (JDIMENSION)((rows_left - 1) / rgroup + 1); in set_bottom_pointers()
241 xbuf = main_ptr->xbuffer[main_ptr->whichptr][ci]; in set_bottom_pointers()
256 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in start_pass_main() local
261 main_ptr->pub.process_data = process_data_context_main; in start_pass_main()
263 main_ptr->whichptr = 0; /* Read first iMCU row into xbuffer[0] */ in start_pass_main()
264 main_ptr->context_state = CTX_PREPARE_FOR_IMCU; in start_pass_main()
265 main_ptr->iMCU_row_ctr = 0; in start_pass_main()
268 main_ptr->pub.process_data = process_data_simple_main; in start_pass_main()
270 main_ptr->buffer_full = FALSE; /* Mark buffer empty */ in start_pass_main()
271 main_ptr->rowgroup_ctr = 0; in start_pass_main()
276 main_ptr->pub.process_data = process_data_crank_post; in start_pass_main()
295 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in process_data_simple_main() local
299 if (!main_ptr->buffer_full) { in process_data_simple_main()
300 if (!(*cinfo->coef->decompress_data) (cinfo, main_ptr->buffer)) in process_data_simple_main()
302 main_ptr->buffer_full = TRUE; /* OK, we have an iMCU row to work with */ in process_data_simple_main()
313 (*cinfo->post->post_process_data) (cinfo, main_ptr->buffer, in process_data_simple_main()
314 &main_ptr->rowgroup_ctr, rowgroups_avail, in process_data_simple_main()
318 if (main_ptr->rowgroup_ctr >= rowgroups_avail) { in process_data_simple_main()
319 main_ptr->buffer_full = FALSE; in process_data_simple_main()
320 main_ptr->rowgroup_ctr = 0; in process_data_simple_main()
334 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in process_data_context_main() local
337 if (!main_ptr->buffer_full) { in process_data_context_main()
339 main_ptr->xbuffer[main_ptr->whichptr])) in process_data_context_main()
341 main_ptr->buffer_full = TRUE; /* OK, we have an iMCU row to work with */ in process_data_context_main()
342 main_ptr->iMCU_row_ctr++; /* count rows received */ in process_data_context_main()
350 switch (main_ptr->context_state) { in process_data_context_main()
354 main_ptr->xbuffer[main_ptr->whichptr], in process_data_context_main()
355 &main_ptr->rowgroup_ctr, in process_data_context_main()
356 main_ptr->rowgroups_avail, output_buf, in process_data_context_main()
358 if (main_ptr->rowgroup_ctr < main_ptr->rowgroups_avail) in process_data_context_main()
360 main_ptr->context_state = CTX_PREPARE_FOR_IMCU; in process_data_context_main()
366 main_ptr->rowgroup_ctr = 0; in process_data_context_main()
367 main_ptr->rowgroups_avail = (JDIMENSION)(cinfo->_min_DCT_scaled_size - 1); in process_data_context_main()
371 if (main_ptr->iMCU_row_ctr == cinfo->total_iMCU_rows) in process_data_context_main()
373 main_ptr->context_state = CTX_PROCESS_IMCU; in process_data_context_main()
378 main_ptr->xbuffer[main_ptr->whichptr], in process_data_context_main()
379 &main_ptr->rowgroup_ctr, in process_data_context_main()
380 main_ptr->rowgroups_avail, output_buf, in process_data_context_main()
382 if (main_ptr->rowgroup_ctr < main_ptr->rowgroups_avail) in process_data_context_main()
385 if (main_ptr->iMCU_row_ctr == 1) in process_data_context_main()
388 main_ptr->whichptr ^= 1; /* 0=>1 or 1=>0 */ in process_data_context_main()
389 main_ptr->buffer_full = FALSE; in process_data_context_main()
392 main_ptr->rowgroup_ctr = (JDIMENSION)(cinfo->_min_DCT_scaled_size + 1); in process_data_context_main()
393 main_ptr->rowgroups_avail = (JDIMENSION)(cinfo->_min_DCT_scaled_size + 2); in process_data_context_main()
394 main_ptr->context_state = CTX_POSTPONED_ROW; in process_data_context_main()
426 my_main_ptr main_ptr; in jinit_d_main_controller() local
430 main_ptr = (my_main_ptr) in jinit_d_main_controller()
433 cinfo->main = (struct jpeg_d_main_controller *)main_ptr; in jinit_d_main_controller()
434 main_ptr->pub.start_pass = start_pass_main; in jinit_d_main_controller()
455 main_ptr->buffer[ci] = (*cinfo->mem->alloc_sarray) in jinit_d_main_controller()