52#ifdef QUANT_2PASS_SUPPORTED
87 post->
buffer = (*cinfo->mem->access_virt_sarray)
95 post->
pub.post_process_data = cinfo->
upsample->upsample;
98#ifdef QUANT_2PASS_SUPPORTED
102 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
103 post->
pub.post_process_data = post_process_prepass;
108 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
109 post->
pub.post_process_data = post_process_2pass;
113 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
137 max_rows = out_rows_avail - *out_row_ctr;
141 (*cinfo->upsample->upsample) (cinfo,
142 input_buf, in_row_group_ctr, in_row_groups_avail,
145 (*cinfo->cquantize->color_quantize) (cinfo,
151#ifdef QUANT_2PASS_SUPPORTED
169 post->
buffer = (*cinfo->mem->access_virt_sarray)
176 (*cinfo->
upsample->upsample) (cinfo,
177 input_buf, in_row_group_ctr, in_row_groups_avail,
182 if (post->
next_row > old_next_row) {
184 (*cinfo->
cquantize->color_quantize) (cinfo, post->
buffer + old_next_row,
213 post->
buffer = (*cinfo->mem->access_virt_sarray)
220 max_rows = out_rows_avail - *out_row_ctr;
229 (*cinfo->
cquantize->color_quantize) (cinfo,
258 post->
pub.start_pass = start_pass_dpost;
263 if (cinfo->quantize_colors) {
272#ifdef QUANT_2PASS_SUPPORTED
273 post->
whole_image = (*cinfo->mem->request_virt_sarray)
275 cinfo->output_width * cinfo->out_color_components,
280 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
284 post->
buffer = (*cinfo->mem->alloc_sarray)
286 cinfo->output_width * cinfo->out_color_components,
unsigned int(__cdecl typeof(jpeg_read_scanlines))(struct jpeg_decompress_struct *
jpeg_component_info JCOEFPTR JSAMPARRAY output_buf
my_post_controller * my_post_ptr
jinit_d_post_controller(j_decompress_ptr cinfo, boolean need_full_buffer)
post_process_1pass(j_decompress_ptr cinfo, JSAMPIMAGE input_buf, JDIMENSION *in_row_group_ctr, JDIMENSION in_row_groups_avail, JSAMPARRAY output_buf, JDIMENSION *out_row_ctr, JDIMENSION out_rows_avail)
int JSAMPARRAY int int num_rows
struct jpeg_common_struct * j_common_ptr
jround_up(long a, long b)
struct jpeg_upsampler * upsample
struct jpeg_d_post_controller * post
struct jpeg_color_quantizer * cquantize
struct jpeg_d_post_controller pub
jvirt_sarray_ptr whole_image