Lines Matching refs:dest

77   ppm_dest_ptr dest = (ppm_dest_ptr) dinfo;  in put_pixel_rows()  local
79 (void) JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_pixel_rows()
92 ppm_dest_ptr dest = (ppm_dest_ptr) dinfo; in copy_pixel_rows() local
97 ptr = dest->pub.buffer[0]; in copy_pixel_rows()
98 bufferptr = dest->iobuffer; in copy_pixel_rows()
99 for (col = dest->samples_per_row; col > 0; col--) { in copy_pixel_rows()
102 (void) JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in copy_pixel_rows()
115 ppm_dest_ptr dest = (ppm_dest_ptr) dinfo; in put_demapped_rgb() local
124 ptr = dest->pub.buffer[0]; in put_demapped_rgb()
125 bufferptr = dest->iobuffer; in put_demapped_rgb()
132 (void) JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_demapped_rgb()
140 ppm_dest_ptr dest = (ppm_dest_ptr) dinfo; in put_demapped_gray() local
146 ptr = dest->pub.buffer[0]; in put_demapped_gray()
147 bufferptr = dest->iobuffer; in put_demapped_gray()
151 (void) JFWRITE(dest->pub.output_file, dest->iobuffer, dest->buffer_width); in put_demapped_gray()
162 ppm_dest_ptr dest = (ppm_dest_ptr) dinfo; in start_output_ppm() local
168 fprintf(dest->pub.output_file, "P5\n%ld %ld\n%d\n", in start_output_ppm()
174 fprintf(dest->pub.output_file, "P6\n%ld %ld\n%d\n", in start_output_ppm()
205 ppm_dest_ptr dest; in jinit_write_ppm() local
208 dest = (ppm_dest_ptr) in jinit_write_ppm()
211 dest->pub.start_output = start_output_ppm; in jinit_write_ppm()
212 dest->pub.finish_output = finish_output_ppm; in jinit_write_ppm()
218 dest->samples_per_row = cinfo->output_width * cinfo->out_color_components; in jinit_write_ppm()
219 dest->buffer_width = dest->samples_per_row * (BYTESPERSAMPLE * sizeof(char)); in jinit_write_ppm()
220 dest->iobuffer = (char *) (*cinfo->mem->alloc_small) in jinit_write_ppm()
221 ((j_common_ptr) cinfo, JPOOL_IMAGE, dest->buffer_width); in jinit_write_ppm()
229 dest->pub.buffer = (*cinfo->mem->alloc_sarray) in jinit_write_ppm()
232 dest->pub.buffer_height = 1; in jinit_write_ppm()
234 dest->pub.put_pixel_rows = copy_pixel_rows; in jinit_write_ppm()
236 dest->pub.put_pixel_rows = put_demapped_gray; in jinit_write_ppm()
238 dest->pub.put_pixel_rows = put_demapped_rgb; in jinit_write_ppm()
242 dest->pixrow = (JSAMPROW) dest->iobuffer; in jinit_write_ppm()
243 dest->pub.buffer = & dest->pixrow; in jinit_write_ppm()
244 dest->pub.buffer_height = 1; in jinit_write_ppm()
245 dest->pub.put_pixel_rows = put_pixel_rows; in jinit_write_ppm()
248 return (djpeg_dest_ptr) dest; in jinit_write_ppm()