10 #define JPEG_INTERNALS 43 #ifdef QUANT_2PASS_SUPPORTED 70 if (cinfo->quantize_colors) {
77 if (post->
buffer == NULL) {
78 post->
buffer = (*cinfo->mem->access_virt_sarray)
86 post->
pub.post_process_data = cinfo->upsample->upsample;
89 #ifdef QUANT_2PASS_SUPPORTED 93 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
99 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
104 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
132 (*cinfo->upsample->upsample) (cinfo,
136 (*cinfo->cquantize->color_quantize) (cinfo,
142 #ifdef QUANT_2PASS_SUPPORTED 161 post->
buffer = (*cinfo->mem->access_virt_sarray)
168 (*cinfo->upsample->upsample) (cinfo,
174 if (post->
next_row > old_next_row) {
176 (*cinfo->cquantize->color_quantize) (cinfo, post->
buffer + old_next_row,
206 post->
buffer = (*cinfo->mem->access_virt_sarray)
222 (*cinfo->cquantize->color_quantize) (cinfo,
256 if (cinfo->quantize_colors) {
265 #ifdef QUANT_2PASS_SUPPORTED 266 post->
whole_image = (*cinfo->mem->request_virt_sarray)
268 cinfo->output_width * cinfo->out_color_components,
273 ERREXIT(cinfo, JERR_BAD_BUFFER_MODE);
277 post->
buffer = (*cinfo->mem->alloc_sarray)
279 cinfo->output_width * cinfo->out_color_components,
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)
jround_up(long a, long b)
struct jpeg_common_struct * j_common_ptr
#define ERREXIT(cinfo, code)
post_process_prepass(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)
struct jpeg_d_post_controller pub
JSAMPIMAGE JDIMENSION JDIMENSION JSAMPARRAY JDIMENSION JDIMENSION out_rows_avail
my_post_controller * my_post_ptr
start_pass_dpost(j_decompress_ptr cinfo, J_BUF_MODE pass_mode)
#define MRPT_UNUSED_PARAM(a)
Can be used to avoid "not used parameters" warnings from the compiler.
METHODDEF(void) post_process_1pass JPP((j_decompress_ptr cinfo
int JSAMPARRAY int int num_rows
post_process_2pass(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)
JSAMPIMAGE JDIMENSION JDIMENSION JSAMPARRAY output_buf
jvirt_sarray_ptr whole_image
JSAMPIMAGE JDIMENSION * in_row_group_ctr
JSAMPIMAGE JDIMENSION JDIMENSION JSAMPARRAY JDIMENSION * out_row_ctr
JSAMPIMAGE JDIMENSION JDIMENSION in_row_groups_avail