aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/simple_idct.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2014-01-12 01:23:50 +0100
committerMichael Niedermayer <michaelni@gmx.at>2014-01-14 15:58:57 +0100
commitd9e556ebd04c755b61b7d56c796ec21bf8928adf (patch)
tree8bc1983e947f45a5949ad9cddc401059cd8126b7 /libavcodec/simple_idct.c
parent12bc33d7cd04d863466d4a2d18a7fbcb59372429 (diff)
downloadffmpeg-d9e556ebd04c755b61b7d56c796ec21bf8928adf.tar.gz
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 <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/simple_idct.c')
-rw-r--r--libavcodec/simple_idct.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/simple_idct.c b/libavcodec/simple_idct.c
index 73f62b4021..eeb627999c 100644
--- a/libavcodec/simple_idct.c
+++ b/libavcodec/simple_idct.c
@@ -232,6 +232,8 @@ void ff_prores_idct(int16_t *block, const int16_t *qmat)
for (i = 0; i < 8; i++)
idctRowCondDC_10(block + i*8, 2);
- for (i = 0; i < 8; i++)
+ for (i = 0; i < 8; i++) {
+ block[i] += 8192;
idctSparseCol_10(block + i);
+ }
}