diff options
author | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2013-05-04 23:41:33 +0000 |
---|---|---|
committer | dcommander <dcommander@632fc199-4ca6-4c93-a231-07263d6284db> | 2013-05-04 23:41:33 +0000 |
commit | 1e0687100ad904c2c6d2ca717a5dbcb767367ea5 (patch) | |
tree | 8e12328a8e3cba38b243f0f7f151956971b6b896 /tjunittest.c | |
parent | dcefac314e94adba34107d53cd8dc3337ad8a0b2 (diff) |
Clean up the output of tjunittest and TJUnitTest
git-svn-id: svn://svn.code.sf.net/p/libjpeg-turbo/code/trunk@981 632fc199-4ca6-4c93-a231-07263d6284db
Diffstat (limited to 'tjunittest.c')
-rw-r--r-- | tjunittest.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tjunittest.c b/tjunittest.c index 7a44b94..85ba32e 100644 --- a/tjunittest.c +++ b/tjunittest.c @@ -221,7 +221,6 @@ int checkBuf(unsigned char *buf, int w, int h, int pf, int subsamp, bailout: if(retval==0) { - printf("\n"); for(row=0; row<h; row++) { for(col=0; col<w; col++) @@ -316,7 +315,6 @@ int checkBufYUV(unsigned char *buf, int w, int h, int subsamp, printf("%.3d ", buf[ypitch*ph + uvpitch*ch + (uvpitch*row+col)]); printf("\n"); } - printf("\n"); } return retval; @@ -411,7 +409,7 @@ void _decompTest(tjhandle handle, unsigned char *jpegBuf, if(yuv==YUVENCODE) return; if(yuv==YUVDECODE) - printf("JPEG -> YUV %s ... ", subName[subsamp]); + printf("JPEG -> YUV %s ... ", subNameLong[subsamp]); else printf("JPEG -> %s %s ", pixFormatStr[pf], (flags&TJFLAG_BOTTOMUP)? "Bottom-Up":"Top-Down "); @@ -482,7 +480,7 @@ void decompTest(tjhandle handle, unsigned char *jpegBuf, sf1); bailout: - printf("\n"); + return; } @@ -524,8 +522,10 @@ void doTest(int w, int h, const int *formats, int nformats, int subsamp, if(pf>=TJPF_RGBX && pf<=TJPF_XRGB) decompTest(dhandle, dstBuf, size, w, h, pf+(TJPF_RGBA-TJPF_RGBX), basename, subsamp, flags); + printf("\n"); } } + printf("--------------------\n\n"); bailout: if(chandle) tjDestroy(chandle); |