aboutsummaryrefslogtreecommitdiff
path: root/jpgtest.c
diff options
context:
space:
mode:
authordcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2011-02-16 02:29:07 +0000
committerdcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db>2011-02-16 02:29:07 +0000
commitb4d146faafd5377e590f6a7ef00fe191c83a7cfc (patch)
tree3ff782101abb71f9c93ceb5b64c90b9c94502cdc /jpgtest.c
parent54c01bf06c0519a161954b309260bac82f5b214b (diff)
Print scaled image size when performing verbose decompression test
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@374 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'jpgtest.c')
-rw-r--r--jpgtest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/jpgtest.c b/jpgtest.c
index a6edf04..a07a999 100644
--- a/jpgtest.c
+++ b/jpgtest.c
@@ -409,7 +409,10 @@ void dodecomptest(char *filename)
else
printf("\n>>>>> JPEG --> %s (%s) <<<<<\n", _pfname[pf],
bu?"Bottom-up":"Top-down");
- printf("\nImage size: %d x %d\n", w, h);
+ printf("\nImage size: %d x %d", w, h);
+ if(scalefactor!=1) printf(" --> %d x %d", (w+scalefactor-1)/scalefactor,
+ (h+scalefactor-1)/scalefactor);
+ printf("\n");
}
decomptest(NULL, &jpegbuf, &jpgbufsize, NULL, w, h, jpegsub, 0, filename, w,