aboutsummaryrefslogtreecommitdiff
path: root/djpeg.c
diff options
context:
space:
mode:
authorTom Gall <tom.gall@linaro.org>2011-08-09 14:49:46 -0500
committerTom Gall <tom.gall@linaro.org>2011-08-09 14:49:46 -0500
commit4a72099711359606b1fc10c1744057a6c568d5d8 (patch)
tree9413089fe9922a1a0e23c4739bd87caf5f357877 /djpeg.c
parent0c0e874b223e9ccc4a756c471f8792102b2d34a4 (diff)
Sync with mainline apply everything between 1.1.1 to 8/8/2011
Diffstat (limited to 'djpeg.c')
-rw-r--r--djpeg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/djpeg.c b/djpeg.c
index 466973f..0dd4f24 100644
--- a/djpeg.c
+++ b/djpeg.c
@@ -2,7 +2,7 @@
* djpeg.c
*
* Copyright (C) 1991-1997, Thomas G. Lane.
- * Copyright (C) 2010, D. R. Commander.
+ * Copyright (C) 2010-2011, D. R. Commander.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -103,6 +103,7 @@ usage (void)
fprintf(stderr, " -colors N Reduce image to no more than N colors\n");
fprintf(stderr, " -fast Fast, low-quality processing\n");
fprintf(stderr, " -grayscale Force grayscale output\n");
+ fprintf(stderr, " -rgb Force RGB output\n");
#ifdef IDCT_SCALING_SUPPORTED
fprintf(stderr, " -scale M/N Scale output image by fraction M/N, eg, 1/8\n");
#endif
@@ -268,6 +269,10 @@ parse_switches (j_decompress_ptr cinfo, int argc, char **argv,
/* Force monochrome output. */
cinfo->out_color_space = JCS_GRAYSCALE;
+ } else if (keymatch(arg, "rgb", 2)) {
+ /* Force RGB output. */
+ cinfo->out_color_space = JCS_RGB;
+
} else if (keymatch(arg, "map", 3)) {
/* Quantize to a color map taken from an input file. */
if (++argn >= argc) /* advance to next argument */