Lines Matching refs:pnm_file
55 BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, BOOL raw,
193 BOOL png2pnm (FILE *png_file, FILE *pnm_file, FILE *alpha_file, in png2pnm() argument
295 pnm_file->flags &= ~((unsigned) _F_BIN); in png2pnm()
356 fprintf (pnm_file, "%s\n", (raw) ? "P5" : "P2"); in png2pnm()
357 fprintf (pnm_file, "%d %d\n", (int) width, (int) height); in png2pnm()
358 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm()
363 fprintf (pnm_file, "%s\n", (raw) ? "P6" : "P3"); in png2pnm()
364 fprintf (pnm_file, "%d %d\n", (int) width, (int) height); in png2pnm()
365 fprintf (pnm_file, "%ld\n", ((1L << (int) bit_depth) - 1L)); in png2pnm()
389 fputc ((int) *pix_ptr++ , pnm_file); in png2pnm()
393 fprintf (pnm_file, "%ld ", (dep_16 << 8) + ((long) *pix_ptr++)); in png2pnm()
396 fprintf (pnm_file, "%ld ", (long) *pix_ptr++); in png2pnm()
422 fprintf (pnm_file, "\n"); in png2pnm()
427 fprintf (pnm_file, "\n"); in png2pnm()