Lines Matching refs:dinfo
248 struct jpeg_decompress_struct dinfo;
254 memset(&dinfo, 0, sizeof(struct jpeg_decompress_struct));
262 dinfo.err=jpeg_std_error(&jerr.pub);
272 jpeg_create_decompress(&dinfo);
275 dinfo.out_color_components=dinfo.output_components=1;
276 dinfo.out_color_space=JCS_GRAYSCALE;
280 dinfo.out_color_components=dinfo.output_components=3;
281 dinfo.out_color_space=JCS_RGB;
283 dinfo.image_width=w; dinfo.image_height=h;
284 dinfo.global_state=DSTATE_READY;
285 dinfo.scale_num=dinfo.scale_denom=1;
290 if((dst=jinit_write_bmp(&dinfo, 0))==NULL)
295 if((dst=jinit_write_ppm(&dinfo))==NULL)
300 (*dst->start_output)(&dinfo, dst);
301 (*dinfo.mem->realize_virt_arrays)((j_common_ptr)&dinfo);
307 while(dinfo.output_scanline<dinfo.output_height)
313 row=dinfo.output_scanline+i;
319 (*dst->put_pixel_rows)(&dinfo, dst, nlines);
320 dinfo.output_scanline+=nlines;
323 (*dst->finish_output)(&dinfo, dst);
326 jpeg_destroy_decompress(&dinfo);