Lines Matching refs:dest
93 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in put_pixel_rows() local
95 (void)JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_pixel_rows()
108 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in copy_pixel_rows() local
115 ptr = dest->pub.buffer[0]; in copy_pixel_rows()
116 bufferptr = dest->iobuffer; in copy_pixel_rows()
118 MEMCOPY(bufferptr, ptr, dest->samples_per_row); in copy_pixel_rows()
120 for (col = dest->samples_per_row; col > 0; col--) { in copy_pixel_rows()
124 (void)JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in copy_pixel_rows()
135 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in put_rgb() local
144 ptr = dest->pub.buffer[0]; in put_rgb()
145 bufferptr = dest->iobuffer; in put_rgb()
152 (void)JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_rgb()
164 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in put_cmyk() local
169 ptr = dest->pub.buffer[0]; in put_cmyk()
170 bufferptr = dest->iobuffer; in put_cmyk()
178 (void)JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_cmyk()
191 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in put_demapped_rgb() local
200 ptr = dest->pub.buffer[0]; in put_demapped_rgb()
201 bufferptr = dest->iobuffer; in put_demapped_rgb()
208 (void)JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_demapped_rgb()
216 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in put_demapped_gray() local
222 ptr = dest->pub.buffer[0]; in put_demapped_gray()
223 bufferptr = dest->iobuffer; in put_demapped_gray()
227 (void)JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_demapped_gray()
238 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in start_output_ppm() local
244 fprintf(dest->pub.output_file, "P5\n%ld %ld\n%d\n", in start_output_ppm()
262 fprintf(dest->pub.output_file, "P6\n%ld %ld\n%d\n", in start_output_ppm()
292 ppm_dest_ptr dest = (ppm_dest_ptr)dinfo; in calc_buffer_dimensions_ppm() local
295 dest->samples_per_row = cinfo->output_width * cinfo->out_color_components; in calc_buffer_dimensions_ppm()
297 dest->samples_per_row = cinfo->output_width * 3; in calc_buffer_dimensions_ppm()
298 dest->buffer_width = dest->samples_per_row * (BYTESPERSAMPLE * sizeof(char)); in calc_buffer_dimensions_ppm()
309 ppm_dest_ptr dest; local
312 dest = (ppm_dest_ptr)
315 dest->pub.start_output = start_output_ppm;
316 dest->pub.finish_output = finish_output_ppm;
317 dest->pub.calc_buffer_dimensions = calc_buffer_dimensions_ppm;
323 dest->pub.calc_buffer_dimensions(cinfo, (djpeg_dest_ptr)dest);
324 dest->iobuffer = (char *)(*cinfo->mem->alloc_small)
325 ((j_common_ptr)cinfo, JPOOL_IMAGE, dest->buffer_width);
339 dest->pub.buffer = (*cinfo->mem->alloc_sarray)
342 dest->pub.buffer_height = 1;
345 dest->pub.put_pixel_rows = put_rgb;
347 dest->pub.put_pixel_rows = put_cmyk;
349 dest->pub.put_pixel_rows = copy_pixel_rows;
351 dest->pub.put_pixel_rows = put_demapped_gray;
353 dest->pub.put_pixel_rows = put_demapped_rgb;
357 dest->pixrow = (JSAMPROW)dest->iobuffer;
358 dest->pub.buffer = &dest->pixrow;
359 dest->pub.buffer_height = 1;
360 dest->pub.put_pixel_rows = put_pixel_rows;
363 return (djpeg_dest_ptr)dest;