OLD | NEW |
1 /* | 1 /* |
2 * djpeg.c | 2 * djpeg.c |
3 * | 3 * |
4 * Copyright (C) 1991-1997, Thomas G. Lane. | 4 * Copyright (C) 1991-1997, Thomas G. Lane. |
5 * Copyright (C) 2010-2011, D. R. Commander. | 5 * Copyright (C) 2010-2011, D. R. Commander. |
6 * This file is part of the Independent JPEG Group's software. | 6 * This file is part of the Independent JPEG Group's software. |
7 * For conditions of distribution and use, see the accompanying README file. | 7 * For conditions of distribution and use, see the accompanying README file. |
8 * | 8 * |
9 * This file contains a command-line user interface for the JPEG decompressor. | 9 * This file contains a command-line user interface for the JPEG decompressor. |
10 * It should work on any system with Unix- or MS-DOS-style command lines. | 10 * It should work on any system with Unix- or MS-DOS-style command lines. |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 usage(); | 238 usage(); |
239 | 239 |
240 } else if (keymatch(arg, "debug", 1) || keymatch(arg, "verbose", 1)) { | 240 } else if (keymatch(arg, "debug", 1) || keymatch(arg, "verbose", 1)) { |
241 /* Enable debug printouts. */ | 241 /* Enable debug printouts. */ |
242 /* On first -d, print version identification */ | 242 /* On first -d, print version identification */ |
243 static boolean printed_version = FALSE; | 243 static boolean printed_version = FALSE; |
244 | 244 |
245 if (! printed_version) { | 245 if (! printed_version) { |
246 fprintf(stderr, "%s version %s (build %s)\n", | 246 fprintf(stderr, "%s version %s (build %s)\n", |
247 PACKAGE_NAME, VERSION, BUILD); | 247 PACKAGE_NAME, VERSION, BUILD); |
248 » fprintf(stderr, "%s\n\n", LJTCOPYRIGHT); | 248 » fprintf(stderr, "%s\n\n", JCOPYRIGHT); |
249 » fprintf(stderr, "Based on Independent JPEG Group's libjpeg, version %s\n
%s\n\n", | 249 » fprintf(stderr, "Emulating The Independent JPEG Group's libjpeg, version
%s\n\n", |
250 » » JVERSION, JCOPYRIGHT); | 250 » » JVERSION); |
251 printed_version = TRUE; | 251 printed_version = TRUE; |
252 } | 252 } |
253 cinfo->err->trace_level++; | 253 cinfo->err->trace_level++; |
254 | 254 |
255 } else if (keymatch(arg, "fast", 1)) { | 255 } else if (keymatch(arg, "fast", 1)) { |
256 /* Select recommended processing options for quick-and-dirty output. */ | 256 /* Select recommended processing options for quick-and-dirty output. */ |
257 cinfo->two_pass_quantize = FALSE; | 257 cinfo->two_pass_quantize = FALSE; |
258 cinfo->dither_mode = JDITHER_ORDERED; | 258 cinfo->dither_mode = JDITHER_ORDERED; |
259 if (! cinfo->quantize_colors) /* don't override an earlier -colors */ | 259 if (! cinfo->quantize_colors) /* don't override an earlier -colors */ |
260 cinfo->desired_number_of_colors = 216; | 260 cinfo->desired_number_of_colors = 216; |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 fclose(output_file); | 617 fclose(output_file); |
618 | 618 |
619 #ifdef PROGRESS_REPORT | 619 #ifdef PROGRESS_REPORT |
620 end_progress_monitor((j_common_ptr) &cinfo); | 620 end_progress_monitor((j_common_ptr) &cinfo); |
621 #endif | 621 #endif |
622 | 622 |
623 /* All done. */ | 623 /* All done. */ |
624 exit(jerr.num_warnings ? EXIT_WARNING : EXIT_SUCCESS); | 624 exit(jerr.num_warnings ? EXIT_WARNING : EXIT_SUCCESS); |
625 return 0; /* suppress no-return-value warnings */ | 625 return 0; /* suppress no-return-value warnings */ |
626 } | 626 } |
OLD | NEW |