• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/minidlna/jpeg-7/

Lines Matching defs:cinfo

66     JPP((j_decompress_ptr cinfo, djpeg_dest_ptr dinfo,
77 start_output_rle (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
83 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress;
99 if (cinfo->output_width > 32767 || cinfo->output_height > 32767)
100 ERREXIT2(cinfo, JERR_RLE_DIMENSIONS, cinfo->output_width,
101 cinfo->output_height);
103 if (cinfo->out_color_space != JCS_GRAYSCALE &&
104 cinfo->out_color_space != JCS_RGB)
105 ERREXIT(cinfo, JERR_RLE_COLORSPACE);
107 if (cinfo->output_components != 1 && cinfo->output_components != 3)
108 ERREXIT1(cinfo, JERR_RLE_TOOMANYCHANNELS, cinfo->num_components);
114 if (cinfo->quantize_colors) {
116 cmapsize = cinfo->out_color_components * CMAPLENGTH * SIZEOF(rle_map);
117 dest->colormap = (rle_map *) (*cinfo->mem->alloc_small)
118 ((j_common_ptr) cinfo, JPOOL_IMAGE, cmapsize);
123 for (ci = 0; ci < cinfo->out_color_components; ci++) {
124 for (i = 0; i < cinfo->actual_number_of_colors; i++) {
126 GETJSAMPLE(cinfo->colormap[ci][i]) << 8;
132 dest->pub.buffer = (*cinfo->mem->access_virt_sarray)
133 ((j_common_ptr) cinfo, dest->image, (JDIMENSION) 0, (JDIMENSION) 1, TRUE);
153 rle_put_pixel_rows (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo,
158 if (cinfo->output_scanline < cinfo->output_height) {
159 dest->pub.buffer = (*cinfo->mem->access_virt_sarray)
160 ((j_common_ptr) cinfo, dest->image,
161 cinfo->output_scanline, (JDIMENSION) 1, TRUE);
172 finish_output_rle (j_decompress_ptr cinfo, djpeg_dest_ptr dinfo)
182 cd_progress_ptr progress = (cd_progress_ptr) cinfo->progress;
189 header.xmax = cinfo->output_width - 1;
191 header.ymax = cinfo->output_height - 1;
193 header.ncolors = cinfo->output_components;
194 for (ci = 0; ci < cinfo->output_components; ci++) {
197 if (cinfo->quantize_colors) {
198 header.ncmap = cinfo->out_color_components;
202 sprintf(cmapcomment, "color_map_length=%d", cinfo->actual_number_of_colors);
216 progress->pub.pass_limit = cinfo->output_height;
218 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo);
222 if (cinfo->output_components == 1) {
223 for (row = cinfo->output_height-1; row >= 0; row--) {
224 rle_row = (rle_pixel **) (*cinfo->mem->access_virt_sarray)
225 ((j_common_ptr) cinfo, dest->image,
227 rle_putrow(rle_row, (int) cinfo->output_width, &header);
231 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo);
236 for (row = cinfo->output_height-1; row >= 0; row--) {
238 output_row = * (*cinfo->mem->access_virt_sarray)
239 ((j_common_ptr) cinfo, dest->image,
244 for (col = cinfo->output_width; col > 0; col--) {
249 rle_putrow(rle_row, (int) cinfo->output_width, &header);
253 (*progress->pub.progress_monitor) ((j_common_ptr) cinfo);
268 ERREXIT(cinfo, JERR_FILE_WRITE);
277 jinit_write_rle (j_decompress_ptr cinfo)
283 (*cinfo->mem->alloc_small) ((j_common_ptr) cinfo, JPOOL_IMAGE,
289 jpeg_calc_output_dimensions(cinfo);
292 dest->rle_row = (*cinfo->mem->alloc_sarray)
293 ((j_common_ptr) cinfo, JPOOL_IMAGE,
294 cinfo->output_width, (JDIMENSION) cinfo->output_components);
297 dest->image = (*cinfo->mem->request_virt_sarray)
298 ((j_common_ptr) cinfo, JPOOL_IMAGE, FALSE,
299 (JDIMENSION) (cinfo->output_width * cinfo->output_components),
300 cinfo->output_height, (JDIMENSION) 1);