Home | History | Annotate | Download | only in jpeg-6b

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 JPEG transcoding.
10 * different JPEG file formats. It also provides some lossless and sort-of-
32 * syntax, ie, intermixed switches and file names, where only the switches
33 * to the left of a given file name affect processing of that file.
34 * The main program in this file doesn't actually use this capability...
56 fprintf(stderr, " -copy none Copy no extra markers from source file\n");
60 fprintf(stderr, " -optimize Optimize Huffman table (smaller file, but slow compression)\n");
63 fprintf(stderr, " -progressive Create progressive JPEG file\n");
77 fprintf(stderr, " -outfile name Specify name for output file\n");
84 fprintf(stderr, " -scans file Create multi-scan JPEG per script file\n");
117 * Returns argv[] index of first file-name argument (== argc if none).
118 * Any file names with indexes <= last_file_arg_seen are ignored;
144 /* Not a switch, must be a file name argument */
146 outfilename = NULL; /* -outfile applies to just one input file */
231 /* Set output file name. */
285 /* We must postpone reading the file in case -progressive appears. */
325 return argn; /* return index of next arg (file name) */
345 FILE * input_file;
346 FILE * output_file;
371 /* Scan command line to find file names.
374 * opening the input file. Also note that most of the switches affect the
384 /* Must have either -outfile switch or explicit output file name */
387 fprintf(stderr, "%s: must name one input and one output file\n",
394 fprintf(stderr, "%s: must name one input and one output file\n",
400 /* Unix style: expect zero or one file name */
402 fprintf(stderr, "%s: only one input file\n", progname);
407 /* Open the input file. */
414 /* default input file is stdin */
418 /* Open the output file. */
425 /* default output file is stdout */
439 /* Read file header */
449 /* Read source file as DCT coefficients */
475 /* Copy to the output file any extra markers that we want to preserve */