Lines Matching refs:pnm_file
34 BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file,
163 BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, in png2pnm() argument
264 setmode (fileno (pnm_file), O_BINARY); in png2pnm()
332 fprintf (pnm_file, "%s\n", (raw) ? "P5" : "P2"); in png2pnm()
333 fprintf (pnm_file, "%d %d\n", (int) width, (int) height); in png2pnm()
334 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm()
339 fprintf (pnm_file, "%s\n", (raw) ? "P6" : "P3"); in png2pnm()
340 fprintf (pnm_file, "%d %d\n", (int) width, (int) height); in png2pnm()
341 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm()
366 fputc ((int) *pix_ptr++, pnm_file); in png2pnm()
373 fprintf (pnm_file, "%ld ", (dep_16 << 8) + ((long) *pix_ptr++)); in png2pnm()
377 fprintf (pnm_file, "%ld ", (long) *pix_ptr++); in png2pnm()
412 fprintf (pnm_file, "\n"); in png2pnm()
417 fprintf (pnm_file, "\n"); in png2pnm()