Lines Matching refs:upsample

71   my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample;  in start_pass_upsample()  local
74 upsample->next_row_out = cinfo->max_v_samp_factor; in start_pass_upsample()
76 upsample->rows_to_go = cinfo->output_height; in start_pass_upsample()
95 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in sep_upsample() local
101 if (upsample->next_row_out >= cinfo->max_v_samp_factor) { in sep_upsample()
107 (*upsample->methods[ci]) (cinfo, compptr, in sep_upsample()
108 input_buf[ci] + (*in_row_group_ctr * upsample->rowgroup_height[ci]), in sep_upsample()
109 upsample->color_buf + ci); in sep_upsample()
111 upsample->next_row_out = 0; in sep_upsample()
117 num_rows = (JDIMENSION) (cinfo->max_v_samp_factor - upsample->next_row_out); in sep_upsample()
121 if (num_rows > upsample->rows_to_go) in sep_upsample()
122 num_rows = upsample->rows_to_go; in sep_upsample()
128 (*cinfo->cconvert->color_convert) (cinfo, upsample->color_buf, in sep_upsample()
129 (JDIMENSION) upsample->next_row_out, in sep_upsample()
135 upsample->rows_to_go -= num_rows; in sep_upsample()
136 upsample->next_row_out += num_rows; in sep_upsample()
138 if (upsample->next_row_out >= cinfo->max_v_samp_factor) in sep_upsample()
192 my_upsample_ptr upsample = (my_upsample_ptr) cinfo->upsample; in int_upsample() local
201 h_expand = upsample->h_expand[compptr->component_index]; in int_upsample()
202 v_expand = upsample->v_expand[compptr->component_index]; in int_upsample()
401 my_upsample_ptr upsample; in jinit_upsampler() local
407 upsample = (my_upsample_ptr) in jinit_upsampler()
410 cinfo->upsample = (struct jpeg_upsampler *) upsample; in jinit_upsampler()
411 upsample->pub.start_pass = start_pass_upsample; in jinit_upsampler()
412 upsample->pub.upsample = sep_upsample; in jinit_upsampler()
413 upsample->pub.need_context_rows = FALSE; /* until we find out differently */ in jinit_upsampler()
437 upsample->rowgroup_height[ci] = v_in_group; /* save for use later */ in jinit_upsampler()
441 upsample->methods[ci] = noop_upsample; in jinit_upsampler()
445 upsample->methods[ci] = fullsize_upsample; in jinit_upsampler()
451 upsample->methods[ci] = h2v1_fancy_upsample; in jinit_upsampler()
453 upsample->methods[ci] = h2v1_upsample; in jinit_upsampler()
458 upsample->methods[ci] = h2v2_fancy_upsample; in jinit_upsampler()
459 upsample->pub.need_context_rows = TRUE; in jinit_upsampler()
461 upsample->methods[ci] = h2v2_upsample; in jinit_upsampler()
465 upsample->methods[ci] = int_upsample; in jinit_upsampler()
466 upsample->h_expand[ci] = (UINT8) (h_out_group / h_in_group); in jinit_upsampler()
467 upsample->v_expand[ci] = (UINT8) (v_out_group / v_in_group); in jinit_upsampler()
471 upsample->color_buf[ci] = (*cinfo->mem->alloc_sarray) in jinit_upsampler()