Lines Matching refs:pnm_file
68 BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw,
206 BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, in png2pnm() argument
308 pnm_file->flags &= ~((unsigned) _F_BIN); in png2pnm()
376 fprintf (pnm_file, "%s\n", (raw) ? "P5" : "P2"); in png2pnm()
377 fprintf (pnm_file, "%d %d\n", (int) width, (int) height); in png2pnm()
378 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm()
383 fprintf (pnm_file, "%s\n", (raw) ? "P6" : "P3"); in png2pnm()
384 fprintf (pnm_file, "%d %d\n", (int) width, (int) height); in png2pnm()
385 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm()
409 fputc ((int) *pix_ptr++ , pnm_file); in png2pnm()
413 fprintf (pnm_file, "%ld ", (dep_16 << 8) + ((long) *pix_ptr++)); in png2pnm()
416 fprintf (pnm_file, "%ld ", (long) *pix_ptr++); in png2pnm()
443 fprintf (pnm_file, "\n"); in png2pnm()
448 fprintf (pnm_file, "\n"); in png2pnm()