Lines Matching refs:pnm_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);
186 BOOL pnm2png (FILE *pnm_file, FILE *png_file, FILE *alpha_file, BOOL interlace, BOOL alpha)
214 get_token(pnm_file, type_token);
229 get_token(pnm_file, width_token);
231 get_token(pnm_file, height_token);
233 get_token(pnm_file, maxval_token);
250 get_token(pnm_file, width_token);
252 get_token(pnm_file, height_token);
254 get_token(pnm_file, maxval_token);
348 *pix_ptr++ = get_data (pnm_file, bit_depth);
351 *pix_ptr++ = get_value (pnm_file, bit_depth);
354 tmp16 = get_value (pnm_file, bit_depth);
446 void get_token(FILE *pnm_file, char *token)
453 token[i] = (unsigned char) fgetc (pnm_file);
461 token[i] = (unsigned char) fgetc (pnm_file);
476 png_uint_32 get_data (FILE *pnm_file, int depth)
490 old_value = fgetc (pnm_file);
509 png_uint_32 get_value (FILE *pnm_file, int depth)
520 get_token (pnm_file, (char *) token);