Home | History | Annotate | Download | only in jpeg

Lines Matching refs:cinfo

50   j_decompress_ptr cinfo;	/* back link saves passing separate parm */
88 ERREXIT(dinfo->cinfo, JERR_FILE_WRITE);
224 int cshift = dinfo->cinfo->data_precision - 8;
228 ERREXIT1(dinfo->cinfo, JERR_TOO_MANY_COLORS, num_colors);
249 put_word(dinfo, (unsigned int) dinfo->cinfo->output_width);
250 put_word(dinfo, (unsigned int) dinfo->cinfo->output_height);
263 if (dinfo->cinfo->out_color_space == JCS_RGB) {
285 put_word(dinfo, (unsigned int) dinfo->cinfo->output_width); /* image size */
286 put_word(dinfo, (unsigned int) dinfo->cinfo->output_height);
302 start_output_gif (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
306 if (cinfo->quantize_colors)
307 emit_header(dest, cinfo->actual_number_of_colors, cinfo->colormap);
319 put_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo,
327 for (col = cinfo->output_width; col > 0; col--) {
338 finish_output_gif (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
351 ERREXIT(cinfo, JERR_FILE_WRITE);
360 jinit_write_gif (j_decompress_ptr cinfo)
366 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
368 dest->cinfo = cinfo; /* make back link for subroutines */
373 if (cinfo->out_color_space != JCS_GRAYSCALE &&
374 cinfo->out_color_space != JCS_RGB)
375 ERREXIT(cinfo, JERR_GIF_COLORSPACE);
378 if (cinfo->out_color_space != JCS_GRAYSCALE || cinfo->data_precision > 8) {
380 cinfo->quantize_colors = TRUE;
381 if (cinfo->desired_number_of_colors > 256)
382 cinfo->desired_number_of_colors = 256;
386 jpeg_calc_output_dimensions(cinfo);
388 if (cinfo->output_components != 1) /* safety check: just one component? */
389 ERREXIT(cinfo, JERR_GIF_BUG);
392 dest->pub.buffer = (*cinfo->mem->alloc_sarray)
393 ((j_common_ptr) cinfo, JPOOL_IMAGE, cinfo->output_width, (JDIMENSION) 1);