Lines Matching refs:cinfo
115 METHODDEF(void) process_data_simple_main(j_decompress_ptr cinfo,
119 METHODDEF(void) process_data_context_main(j_decompress_ptr cinfo,
124 METHODDEF(void) process_data_crank_post(j_decompress_ptr cinfo,
132 alloc_funny_pointers(j_decompress_ptr cinfo) in alloc_funny_pointers() argument
137 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in alloc_funny_pointers()
139 int M = cinfo->_min_DCT_scaled_size; in alloc_funny_pointers()
147 (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE, in alloc_funny_pointers()
148 cinfo->num_components * 2 * sizeof(JSAMPARRAY)); in alloc_funny_pointers()
149 main_ptr->xbuffer[1] = main_ptr->xbuffer[0] + cinfo->num_components; in alloc_funny_pointers()
151 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in alloc_funny_pointers()
154 cinfo->_min_DCT_scaled_size; /* height of a row group of component */ in alloc_funny_pointers()
159 (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE, in alloc_funny_pointers()
170 make_funny_pointers(j_decompress_ptr cinfo) in make_funny_pointers() argument
178 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in make_funny_pointers()
180 int M = cinfo->_min_DCT_scaled_size; in make_funny_pointers()
184 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in make_funny_pointers()
187 cinfo->_min_DCT_scaled_size; /* height of a row group of component */ in make_funny_pointers()
213 set_bottom_pointers(j_decompress_ptr cinfo) in set_bottom_pointers() argument
219 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in set_bottom_pointers()
224 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in set_bottom_pointers()
228 rgroup = iMCUheight / cinfo->_min_DCT_scaled_size; in set_bottom_pointers()
254 start_pass_main(j_decompress_ptr cinfo, J_BUF_MODE pass_mode) in start_pass_main() argument
256 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in start_pass_main()
260 if (cinfo->upsample->need_context_rows) { in start_pass_main()
262 make_funny_pointers(cinfo); /* Create the xbuffer[] lists */ in start_pass_main()
280 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); in start_pass_main()
292 process_data_simple_main(j_decompress_ptr cinfo, JSAMPARRAY output_buf, in process_data_simple_main() argument
295 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in process_data_simple_main()
300 if (!(*cinfo->coef->decompress_data) (cinfo, main_ptr->buffer)) in process_data_simple_main()
306 rowgroups_avail = (JDIMENSION)cinfo->_min_DCT_scaled_size; in process_data_simple_main()
313 (*cinfo->post->post_process_data) (cinfo, main_ptr->buffer, in process_data_simple_main()
331 process_data_context_main(j_decompress_ptr cinfo, JSAMPARRAY output_buf, in process_data_context_main() argument
334 my_main_ptr main_ptr = (my_main_ptr)cinfo->main; in process_data_context_main()
338 if (!(*cinfo->coef->decompress_data) (cinfo, in process_data_context_main()
353 (*cinfo->post->post_process_data) (cinfo, 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()
372 set_bottom_pointers(cinfo); in process_data_context_main()
377 (*cinfo->post->post_process_data) (cinfo, in process_data_context_main()
386 set_wraparound_pointers(cinfo); 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()
408 process_data_crank_post(j_decompress_ptr cinfo, JSAMPARRAY output_buf, in process_data_crank_post() argument
411 (*cinfo->post->post_process_data) (cinfo, (JSAMPIMAGE)NULL, in process_data_crank_post()
424 jinit_d_main_controller(j_decompress_ptr cinfo, boolean need_full_buffer) in jinit_d_main_controller() argument
431 (*cinfo->mem->alloc_small) ((j_common_ptr)cinfo, JPOOL_IMAGE, in jinit_d_main_controller()
433 cinfo->main = (struct jpeg_d_main_controller *)main_ptr; in jinit_d_main_controller()
437 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE); in jinit_d_main_controller()
442 if (cinfo->upsample->need_context_rows) { in jinit_d_main_controller()
443 if (cinfo->_min_DCT_scaled_size < 2) /* unsupported, see comments above */ in jinit_d_main_controller()
444 ERREXIT(cinfo, JERR_NOTIMPL); in jinit_d_main_controller()
445 alloc_funny_pointers(cinfo); /* Alloc space for xbuffer[] lists */ in jinit_d_main_controller()
446 ngroups = cinfo->_min_DCT_scaled_size + 2; in jinit_d_main_controller()
448 ngroups = cinfo->_min_DCT_scaled_size; in jinit_d_main_controller()
451 for (ci = 0, compptr = cinfo->comp_info; ci < cinfo->num_components; in jinit_d_main_controller()
454 cinfo->_min_DCT_scaled_size; /* height of a row group of component */ in jinit_d_main_controller()
455 main_ptr->buffer[ci] = (*cinfo->mem->alloc_sarray) in jinit_d_main_controller()
456 ((j_common_ptr)cinfo, JPOOL_IMAGE, in jinit_d_main_controller()