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 the JPEG compressor.
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).
51 * This routine determines what format the input file is,
54 * To determine which family of input formats the file belongs to,
55 * we may look only at the first byte of the file, since C does not
58 * 1) assume we can fseek() the input file (fails for piped input);
64 * they start reading after the start of file (also breaks RLE library).
67 * The most portable solution for file types that can't be identified by their
69 * only approach for "raw" file types that contain only arbitrary values.
72 * a Targa file could start with any byte value (byte 0 is the length of the
80 select_file_type (j_compress_ptr cinfo, FILE * infile)
130 * syntax, ie, intermixed switches and file names, where only the switches
131 * to the left of a given file name affect processing of that file.
132 * The main program in this file doesn't actually use this capability...
153 fprintf(stderr, " -grayscale Create monochrome JPEG file\n");
155 fprintf(stderr, " -optimize Optimize Huffman table (smaller file, but slow compression)\n");
158 fprintf(stderr, " -progressive Create progressive JPEG file\n");
161 fprintf(stderr, " -targa Input file is Targa format (usually not needed)\n");
181 fprintf(stderr, " -outfile name Specify name for output file\n");
188 fprintf(stderr, " -qtables file Use quantization tables given in file\n");
192 fprintf(stderr, " -scans file Create multi-scan JPEG per script file\n");
202 * Returns argv[] index of first file-name argument (== argc if none).
203 * Any file names with indexes <= last_file_arg_seen are ignored;
238 /* Not a switch, must be a file name argument */
240 outfilename = NULL; /* -outfile applies to just one input file */
287 /* Force a monochrome JPEG file to be generated. */
314 /* Set output file name. */
350 /* Quantization tables fetched from file. */
354 /* We postpone actually reading the file in case -quality comes later. */
391 /* We must postpone reading the file in case -progressive appears. */
411 /* Input file is Targa format. */
452 return argn; /* return index of next arg (file name) */
470 FILE * input_file;
471 FILE * output_file;
498 * In particular, we don't yet know the input file's color space,
505 /* Scan command line to find file names.
508 * the input file.
514 /* Must have either -outfile switch or explicit output file name */
517 fprintf(stderr, "%s: must name one input and one output file\n",
524 fprintf(stderr, "%s: must name one input and one output file\n",
530 /* Unix style: expect zero or one file name */
532 fprintf(stderr, "%s: only one input file\n", progname);
537 /* Open the input file. */
544 /* default input file is stdin */
548 /* Open the output file. */
555 /* default output file is stdout */
563 /* Figure out the input file format, and set up to read it. */
567 /* Read the input file header to obtain file size & colorspace. */