diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2010-07-22 19:02:49 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2010-07-22 19:02:49 +0000 |
commit | b6f1e7ec44dfaa7c8a49c14221b977d4052adb4d (patch) | |
tree | 54c186917d2223d851c8adb591c401fed1de0e73 | |
parent | 9d0b30424159ce11f6dc856aa27918d158008f19 (diff) | |
download | ffmpeg-b6f1e7ec44dfaa7c8a49c14221b977d4052adb4d.tar.gz |
swscale-test: print test name before running test, so that it's available in
the output even if the test crashes.
Originally committed as revision 31770 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
-rw-r--r-- | libswscale/swscale-test.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c index 4dec6d38af..aaf0280940 100644 --- a/libswscale/swscale-test.c +++ b/libswscale/swscale-test.c @@ -149,6 +149,12 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, // printf("test %X %X %X -> %X %X %X\n", (int)ref[0], (int)ref[1], (int)ref[2], // (int)src[0], (int)src[1], (int)src[2]); + printf(" %s %dx%d -> %s %4dx%4d flags=%2d", + av_pix_fmt_descriptors[srcFormat].name, srcW, srcH, + av_pix_fmt_descriptors[dstFormat].name, dstW, dstH, + flags); + fflush(stdout); + sws_scale(srcContext, ref, refStride, 0, h , src, srcStride); sws_scale(dstContext, src, srcStride, 0, srcH, dst, dstStride); sws_scale(outContext, dst, dstStride, 0, dstH, out, refStride); @@ -167,11 +173,8 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, ssdV/= w*h/4; ssdA/= w*h; - printf(" %s %dx%d -> %s %4dx%4d flags=%2d SSD=%5"PRId64",%5"PRId64",%5"PRId64",%5"PRId64"\n", - av_pix_fmt_descriptors[srcFormat].name, srcW, srcH, - av_pix_fmt_descriptors[dstFormat].name, dstW, dstH, - flags, ssdY, ssdU, ssdV, ssdA); - fflush(stdout); + printf(" SSD=%5"PRId64",%5"PRId64",%5"PRId64",%5"PRId64"\n", + ssdY, ssdU, ssdV, ssdA); end: |