From ac08ef624c8ce78d21a5165f64102feddb01f84f Mon Sep 17 00:00:00 2001 From: DRC Date: Thu, 9 Dec 2010 10:01:57 +0000 Subject: [PATCH] Don't require quality argument when encoding to YUV git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@306 632fc199-4ca6-4c93-a231-07263d6284db --- jpgtest.cxx | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/jpgtest.cxx b/jpgtest.cxx index 96e5173..9fe0b2c 100644 --- a/jpgtest.cxx +++ b/jpgtest.cxx @@ -383,7 +383,7 @@ void usage(char *progname) printf(" Use fast, inaccurate upsampling code to perform 4:2:2 and 4:2:0\n"); printf(" YUV decoding in libjpeg decompressor\n\n"); printf(" [-quiet]\n"); - printf(" Output in tabular rather than verbose format\n"); + printf(" Output in tabular rather than verbose format\n\n"); printf(" [-yuv]\n"); printf(" Encode RGB input as planar YUV rather than compressing as JPEG\n\n"); printf(" NOTE: If the quality is specified as a range, i.e. 90-100, a separate\n"); @@ -410,7 +410,19 @@ int main(int argc, char *argv[]) if(!stricmp(temp, ".jpg") || !stricmp(temp, ".jpeg")) decomponly=1; } - if(!decomponly) + if(argc>minarg) + { + for(i=minarg; i