From d9e556ebd04c755b61b7d56c796ec21bf8928adf Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 12 Jan 2014 01:23:50 +0100 Subject: avcodec/proresdsp & idct: move biasing from after the IDCT into the IDCT This replaces 64 additions by 8 additions MSE Changes from 0.04873672 to 0.05012422 Signed-off-by: Michael Niedermayer --- libavcodec/dct-test.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavcodec/dct-test.c') diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index bc1af8e..35f63a1 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -107,6 +107,9 @@ static void ff_prores_idct_wrap(int16_t *dst){ qmat[i]=4; } ff_prores_idct(dst, qmat); + for(i=0; i<64; i++) { + dst[i] -= 512; + } } #if ARCH_X86_64 && HAVE_MMX && HAVE_YASM void ff_prores_idct_put_10_sse2(uint16_t *dst, int linesize, -- cgit v1.1