Clean up the output of tjunittest and TJUnitTest
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@981 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user