diff options
author | Ramiro Polla <ramiro.polla@gmail.com> | 2010-09-12 18:16:53 +0000 |
---|---|---|
committer | Ramiro Polla <ramiro.polla@gmail.com> | 2010-09-12 18:16:53 +0000 |
commit | 9075bc7c51faefbe8ab144d62db9c304b4c9375d (patch) | |
tree | f6a0561aae7dd3eed4dac87571ac234de7ff0fed /libswscale | |
parent | 4bf44785982278fae086d25063439cfa343382d7 (diff) | |
download | ffmpeg-9075bc7c51faefbe8ab144d62db9c304b4c9375d.tar.gz |
indent
Originally committed as revision 32214 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale-test.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/libswscale/swscale-test.c b/libswscale/swscale-test.c index 1f380dbfa7..dc4f78e2e7 100644 --- a/libswscale/swscale-test.c +++ b/libswscale/swscale-test.c @@ -205,19 +205,19 @@ static int doTest(uint8_t *ref[4], int refStride[4], int w, int h, } 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); |