Lines Matching refs: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 a command-line user interface for the JPEG decompressor.
16 * normally redirect to a file or pipe to some other program. Input is
17 * either from a named file or from standard input (typically redirected).
79 * syntax, ie, intermixed switches and file names, where only the switches
80 * to the left of a given file name affect processing of that file.
81 * The main program in this file doesn't actually use this capability...
148 fprintf(stderr, " -map FILE Map to colors used in named image file\n");
155 fprintf(stderr, " -outfile name Specify name for output file\n");
165 * Returns argv[] index of first file-name argument (== argc if none).
166 * Any file names with indexes <= last_file_arg_seen are ignored;
177 requested_fmt = DEFAULT_FMT; /* set default output file format */
186 /* Not a switch, must be a file name argument */
188 outfilename = NULL; /* -outfile applies to just one input file */
267 /* Quantize to a color map taken from an input file. */
272 FILE * mapfile;
312 /* Set output file name. */
342 return argn; /* return index of next arg (file name) */
433 FILE * input_file;
434 FILE * output_file;
468 /* Scan command line to find file names. */
471 * the input file.
479 /* Must have either -outfile switch or explicit output file name */
482 fprintf(stderr, "%s: must name one input and one output file\n",
489 fprintf(stderr, "%s: must name one input and one output file\n",
495 /* Unix style: expect zero or one file name */
497 fprintf(stderr, "%s: only one input file\n", progname);
502 /* Open the input file. */
509 file is stdin */
513 /* Open the output file. */
520 /* default output file is stdout */
531 /* Read file header, set default decompression parameters */
578 /* Write output file header */