Home | History | Annotate | Download | only in pngminus

Lines Matching refs:FILE

2  *  pnm2png.c --- conversion from PBM/PGM/PPM-file to PNG-file
52 BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace, BOOL alpha);
53 void get_token(FILE *pnm_file, char *token);
54 png_uint_32 get_data (FILE *pnm_file, int depth);
55 png_uint_32 get_value (FILE *pnm_file, int depth);
63 FILE *fp_rd = stdin;
64 FILE *fp_al = NULL;
65 FILE *fp_wr = stdout;
85 fprintf (stderr, "Error: alpha-channel file %s does not exist\n",
108 fprintf (stderr, "Error: file %s does not exist\n", argv[argi]);
117 fprintf (stderr, "Error: can not create PNG-file %s\n", argv[argi]);
150 /* close input file */
152 /* close output file */
154 /* close alpha file */
174 fprintf (stderr, "Usage: pnm2png [options] <file>.<pnm> [<file>.png]\n");
177 fprintf (stderr, " -i[nterlace] write png-file with interlacing on\n");
178 fprintf (stderr, " -a[lpha] <file>.pgm read PNG alpha channel as pgm-file\n");
186 BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace, BOOL alpha)
212 /* read header of PNM file */
272 /* read header of PGM file with alpha channel */
338 /* read data from PNM file */
362 if (alpha) /* read alpha-channel from pgm file */
403 /* we're going to write more or less the same PNG as the input file */
408 /* write the file header information */
428 /* write the additional chuncks to the PNG file (not really needed) */
446 void get_token(FILE *pnm_file, char *token)
476 png_uint_32 get_data (FILE *pnm_file, int depth)
509 png_uint_32 get_value (FILE *pnm_file, int depth)