Lines Matching refs:upsample
103 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in build_ycc_rgb_table() local
108 upsample->Cr_r_tab = (int *) in build_ycc_rgb_table()
111 upsample->Cb_b_tab = (int *) in build_ycc_rgb_table()
114 upsample->Cr_g_tab = (INT32 *) in build_ycc_rgb_table()
117 upsample->Cb_g_tab = (INT32 *) in build_ycc_rgb_table()
125 upsample->Cr_r_tab[i] = (int) in build_ycc_rgb_table()
128 upsample->Cb_b_tab[i] = (int) in build_ycc_rgb_table()
131 upsample->Cr_g_tab[i] = (- FIX(0.71414)) * x; in build_ycc_rgb_table()
134 upsample->Cb_g_tab[i] = (- FIX(0.34414)) * x + ONE_HALF; in build_ycc_rgb_table()
146 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in start_pass_merged_upsample() local
149 upsample->spare_full = FALSE; in start_pass_merged_upsample()
151 upsample->rows_to_go = cinfo->output_height; in start_pass_merged_upsample()
169 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in merged_2v_upsample() local
173 if (upsample->spare_full) { in merged_2v_upsample()
175 JDIMENSION size = upsample->out_row_width; in merged_2v_upsample()
180 jcopy_sample_rows(& upsample->spare_row, 0, output_buf + *out_row_ctr, 0, in merged_2v_upsample()
184 upsample->spare_full = FALSE; in merged_2v_upsample()
189 if (num_rows > upsample->rows_to_go) in merged_2v_upsample()
190 num_rows = upsample->rows_to_go; in merged_2v_upsample()
200 work_ptrs[1] = upsample->spare_row; in merged_2v_upsample()
201 upsample->spare_full = TRUE; in merged_2v_upsample()
204 (*upsample->upmethod) (cinfo, input_buf, *in_row_group_ctr, work_ptrs); in merged_2v_upsample()
209 upsample->rows_to_go -= num_rows; in merged_2v_upsample()
211 if (! upsample->spare_full) in merged_2v_upsample()
224 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in merged_1v_upsample() local
227 (*upsample->upmethod) (cinfo, input_buf, *in_row_group_ctr, in merged_1v_upsample()
254 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in h2v1_merged_upsample() local
262 int * Crrtab = upsample->Cr_r_tab; in h2v1_merged_upsample()
263 int * Cbbtab = upsample->Cb_b_tab; in h2v1_merged_upsample()
264 INT32 * Crgtab = upsample->Cr_g_tab; in h2v1_merged_upsample()
265 INT32 * Cbgtab = upsample->Cb_g_tab; in h2v1_merged_upsample()
313 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in h2v1_merged_upsample_565() local
321 int * Crrtab = upsample->Cr_r_tab; in h2v1_merged_upsample_565()
322 int * Cbbtab = upsample->Cb_b_tab; in h2v1_merged_upsample_565()
323 INT32 * Crgtab = upsample->Cr_g_tab; in h2v1_merged_upsample_565()
324 INT32 * Cbgtab = upsample->Cb_g_tab; in h2v1_merged_upsample_565()
377 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in h2v1_merged_upsample_565D() local
385 int * Crrtab = upsample->Cr_r_tab; in h2v1_merged_upsample_565D()
386 int * Cbbtab = upsample->Cb_b_tab; in h2v1_merged_upsample_565D()
387 INT32 * Crgtab = upsample->Cr_g_tab; in h2v1_merged_upsample_565D()
388 INT32 * Cbgtab = upsample->Cb_g_tab; in h2v1_merged_upsample_565D()
451 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in h2v2_merged_upsample() local
459 int * Crrtab = upsample->Cr_r_tab; in h2v2_merged_upsample()
460 int * Cbbtab = upsample->Cb_b_tab; in h2v2_merged_upsample()
461 INT32 * Crgtab = upsample->Cr_g_tab; in h2v2_merged_upsample()
462 INT32 * Cbgtab = upsample->Cb_g_tab; in h2v2_merged_upsample()
527 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in h2v2_merged_upsample_565() local
535 int * Crrtab = upsample->Cr_r_tab; in h2v2_merged_upsample_565()
536 int * Cbbtab = upsample->Cb_b_tab; in h2v2_merged_upsample_565()
537 INT32 * Crgtab = upsample->Cr_g_tab; in h2v2_merged_upsample_565()
538 INT32 * Cbgtab = upsample->Cb_g_tab; in h2v2_merged_upsample_565()
612 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in h2v2_merged_upsample_565D() local
620 int * Crrtab = upsample->Cr_r_tab; in h2v2_merged_upsample_565D()
621 int * Cbbtab = upsample->Cb_b_tab; in h2v2_merged_upsample_565D()
622 INT32 * Crgtab = upsample->Cr_g_tab; in h2v2_merged_upsample_565D()
623 INT32 * Cbgtab = upsample->Cb_g_tab; in h2v2_merged_upsample_565D()
711 my_upsample_ptr upsample; in jinit_merged_upsampler() local
713 upsample = (my_upsample_ptr) in jinit_merged_upsampler()
716 cinfo->upsample = (struct jpeg_upsampler *) upsample; in jinit_merged_upsampler()
717 upsample->pub.start_pass = start_pass_merged_upsample; in jinit_merged_upsampler()
718 upsample->pub.need_context_rows = FALSE; in jinit_merged_upsampler()
720 upsample->out_row_width = cinfo->output_width * cinfo->out_color_components; in jinit_merged_upsampler()
723 upsample->pub.upsample = merged_2v_upsample; in jinit_merged_upsampler()
724 upsample->upmethod = h2v2_merged_upsample; in jinit_merged_upsampler()
728 upsample->upmethod = h2v2_merged_upsample_565; in jinit_merged_upsampler()
730 upsample->upmethod = h2v2_merged_upsample_565D; in jinit_merged_upsampler()
735 upsample->spare_row = (JSAMPROW) in jinit_merged_upsampler()
737 (size_t) (upsample->out_row_width * SIZEOF(JSAMPLE))); in jinit_merged_upsampler()
739 upsample->pub.upsample = merged_1v_upsample; in jinit_merged_upsampler()
740 upsample->upmethod = h2v1_merged_upsample; in jinit_merged_upsampler()
744 upsample->upmethod = h2v1_merged_upsample_565; in jinit_merged_upsampler()
746 upsample->upmethod = h2v1_merged_upsample_565D; in jinit_merged_upsampler()
751 upsample->spare_row = NULL; in jinit_merged_upsampler()