Lines Matching defs:file

5  * This file is part of the Independent JPEG Group's software.
6 * For conditions of distribution and use, see the accompanying README file.
8 * This file contains routines to process some of cjpeg's more complicated
10 * -qtables file Read quantization tables from text file
11 * -scans file Read scan script from text file
21 text_getc (FILE * file)
27 ch = getc(file);
30 ch = getc(file);
38 read_text_integer (FILE * file, long * result, int * termchar)
39 /* Read an unsigned decimal integer from a file, store it in result */
47 ch = text_getc(file);
60 while ((ch = text_getc(file)) != EOF) {
75 /* Read a set of quantization tables from the specified file.
76 * The file is plain ASCII text: decimal numbers with whitespace between.
77 * Comments preceded by '#' may be included in the file.
78 * There may be one to NUM_QUANT_TBLS tables in the file, each of 64 values.
91 fprintf(stderr, "Can't open table file %s\n", filename);
98 fprintf(stderr, "Too many tables in file %s\n", filename);
105 fprintf(stderr, "Invalid table data in file %s\n", filename);
116 fprintf(stderr, "Non-numeric data in file %s\n", filename);
129 read_scan_integer (FILE * file, long * result, int * termchar)
136 if (! read_text_integer(file, result, termchar))
140 ch = text_getc(file);
142 if (ungetc(ch, file) == EOF)
159 /* Read a scan script from the specified text file.
160 * Each entry in the file defines one scan to be emitted.
167 * The file is free format text: any whitespace may appear between numbers
170 * Comments preceded by '#' may be included in the file.
183 fprintf(stderr, "Can't open scan definition file %s\n", filename);
191 fprintf(stderr, "Too many scans defined in file %s\n", filename);
199 fprintf(stderr, "Too many components in one scan in file %s\n",
232 fprintf(stderr, "Invalid scan entry format in file %s\n", filename);
240 fprintf(stderr, "Non-numeric data in file %s\n", filename);