[FFmpeg-cvslog] r32214 - trunk/libswscale/swscale-test.c

ramiro subversion
Sun Sep 12 20:16:53 CEST 2010


Author: ramiro
Date: Sun Sep 12 20:16:53 2010
New Revision: 32214

Log:
indent

Modified:
   trunk/libswscale/swscale-test.c

Modified: trunk/libswscale/swscale-test.c
==============================================================================
--- trunk/libswscale/swscale-test.c	Sun Sep 12 20:16:33 2010	(r32213)
+++ trunk/libswscale/swscale-test.c	Sun Sep 12 20:16:53 2010	(r32214)
@@ -205,19 +205,19 @@ static int doTest(uint8_t *ref[4], int r
         }
         sws_scale(outContext, dst, dstStride, 0, dstH, out, refStride);
 
-    ssdY= getSSD(ref[0], out[0], refStride[0], refStride[0], w, h);
-    if (hasChroma(srcFormat) && hasChroma(dstFormat)) {
-        //FIXME check that output is really gray
-        ssdU= getSSD(ref[1], out[1], refStride[1], refStride[1], (w+1)>>1, (h+1)>>1);
-        ssdV= getSSD(ref[2], out[2], refStride[2], refStride[2], (w+1)>>1, (h+1)>>1);
-    }
-    if (isALPHA(srcFormat) && isALPHA(dstFormat))
-        ssdA= getSSD(ref[3], out[3], refStride[3], refStride[3], w, h);
+        ssdY= getSSD(ref[0], out[0], refStride[0], refStride[0], w, h);
+        if (hasChroma(srcFormat) && hasChroma(dstFormat)) {
+            //FIXME check that output is really gray
+            ssdU= getSSD(ref[1], out[1], refStride[1], refStride[1], (w+1)>>1, (h+1)>>1);
+            ssdV= getSSD(ref[2], out[2], refStride[2], refStride[2], (w+1)>>1, (h+1)>>1);
+        }
+        if (isALPHA(srcFormat) && isALPHA(dstFormat))
+            ssdA= getSSD(ref[3], out[3], refStride[3], refStride[3], w, h);
 
-    ssdY/= w*h;
-    ssdU/= w*h/4;
-    ssdV/= w*h/4;
-    ssdA/= w*h;
+        ssdY/= w*h;
+        ssdU/= w*h/4;
+        ssdV/= w*h/4;
+        ssdA/= w*h;
 
         sws_freeContext(outContext);
 



More information about the ffmpeg-cvslog mailing list