summaryrefslogtreecommitdiff
path: root/plugins/AdvaImg/src/LibJPEG/djpeg.c
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-05-28 20:21:59 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-05-28 20:21:59 +0300
commit46cb763bffdbd1d2feea6d27344c48d16a511745 (patch)
tree4eea9dd37e649dbfb3d24bbb1b03671db2f7ae0e /plugins/AdvaImg/src/LibJPEG/djpeg.c
parentc9bffd4f4e69fb1f34781cdf138b8b17e96b835b (diff)
AdvaImg: LibJPEG lib update to 9b
Diffstat (limited to 'plugins/AdvaImg/src/LibJPEG/djpeg.c')
-rw-r--r--plugins/AdvaImg/src/LibJPEG/djpeg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/AdvaImg/src/LibJPEG/djpeg.c b/plugins/AdvaImg/src/LibJPEG/djpeg.c
index 77718cefbe..2845f306c1 100644
--- a/plugins/AdvaImg/src/LibJPEG/djpeg.c
+++ b/plugins/AdvaImg/src/LibJPEG/djpeg.c
@@ -2,7 +2,7 @@
* djpeg.c
*
* Copyright (C) 1991-1997, Thomas G. Lane.
- * Modified 2009-2013 by Guido Vollbeding.
+ * Modified 2009-2015 by Guido Vollbeding.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
@@ -102,6 +102,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
@@ -264,6 +265,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", 3)) {
+ /* 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 */