summaryrefslogtreecommitdiff
path: root/vp9/decoder/vp9_dequantize.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2013-02-01 15:34:28 -0800
committerYaowu Xu <yaowu@google.com>2013-02-04 07:31:25 -0800
commit1eb79dc1dce110455fc580954552fb4c38dcc6da (patch)
tree5d9fc5a21d5949fa435844e56594f561e750bd68 /vp9/decoder/vp9_dequantize.c
parentccaaeb4b5aee32d71f45e2fbeda906b7bf84c396 (diff)
downloadlibvpx-1eb79dc1dce110455fc580954552fb4c38dcc6da.tar
libvpx-1eb79dc1dce110455fc580954552fb4c38dcc6da.tar.gz
libvpx-1eb79dc1dce110455fc580954552fb4c38dcc6da.tar.bz2
libvpx-1eb79dc1dce110455fc580954552fb4c38dcc6da.zip
re-write 8 point idct
to be consistent with idct16 and idct32. Change-Id: Ie89dbd32b65c33274b7fecb4b41160fcf1962204
Diffstat (limited to 'vp9/decoder/vp9_dequantize.c')
-rw-r--r--vp9/decoder/vp9_dequantize.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/vp9/decoder/vp9_dequantize.c b/vp9/decoder/vp9_dequantize.c
index 7a3262891..e46be3ac7 100644
--- a/vp9/decoder/vp9_dequantize.c
+++ b/vp9/decoder/vp9_dequantize.c
@@ -212,14 +212,11 @@ void vp9_dequant_idct_add_8x8_c(int16_t *input, const int16_t *dq,
vp9_copy_mem8x8(pred, pitch, dest, stride);
} else if (eob == 1) {
/* DC only DCT coefficient. */
+ int16_t in = input[0];
int16_t out;
-
/* Note: the idct1 will need to be modified accordingly whenever
* vp9_short_idct8x8_c() is modified. */
- out = (input[0] + 1 + (input[0] < 0)) >> 2;
- out = out << 3;
- out = (out + 32) >> 7;
-
+ vp9_short_idct1_8x8_c(&in, &out);
input[0] = 0;
add_constant_residual(out, pred, pitch, dest, stride, 8, 8);