changeset 31704:3b0a05188b16

swscale-test: print test name before running test, so that it's available in the output even if the test crashes.
author ramiro
date Thu, 22 Jul 2010 19:02:49 +0000
parents 764c5061ab85
children 41638ecd6025
files libswscale/swscale-test.c
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libswscale/swscale-test.c	Thu Jul 22 17:10:33 2010 +0000
+++ b/libswscale/swscale-test.c	Thu Jul 22 19:02:49 2010 +0000
@@ -149,6 +149,12 @@
 //    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 @@
     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: