X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fdll%2F3rdparty%2Flibjpeg%2Fdjpeg.c;h=0c9b89bdd5fc009b95b77a1bad540a66cbcc316d;hp=be7f2690ed4a61cf158087f1b4ba86425b205098;hb=ebf8247723f6a2e4d76a2e3ade72c71e30023200;hpb=d92f2f5ea11346bc783d7de09f2121c229e407c8 diff --git a/reactos/dll/3rdparty/libjpeg/djpeg.c b/reactos/dll/3rdparty/libjpeg/djpeg.c index be7f2690ed4..0c9b89bdd5f 100644 --- a/reactos/dll/3rdparty/libjpeg/djpeg.c +++ b/reactos/dll/3rdparty/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 */