summaryrefslogtreecommitdiff
path: root/vp9/decoder
diff options
context:
space:
mode:
authorJingning Han <jingning@google.com>2013-07-29 13:55:22 -0700
committerJingning Han <jingning@google.com>2013-07-29 14:45:53 -0700
commita7c4de22e106f005a21efd0e73f3e5ff31d8152e (patch)
tree22405281d1fb1597a1cd475801a451f80bbd6a9d /vp9/decoder
parent23391ea8353f9535ef12d0b797f994f1e181ca2d (diff)
downloadlibvpx-a7c4de22e106f005a21efd0e73f3e5ff31d8152e.tar
libvpx-a7c4de22e106f005a21efd0e73f3e5ff31d8152e.tar.gz
libvpx-a7c4de22e106f005a21efd0e73f3e5ff31d8152e.tar.bz2
libvpx-a7c4de22e106f005a21efd0e73f3e5ff31d8152e.zip
16x16 inverse 2D-DCT with DC only
This commit provides special handle on 16x16 inverse 2D-DCT, where only DC coefficient is quantized to be non-zero value. Change-Id: I7bf71be7fa13384fab453dc8742b5b50e77a277c
Diffstat (limited to 'vp9/decoder')
-rw-r--r--vp9/decoder/vp9_idct_blk.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/vp9/decoder/vp9_idct_blk.c b/vp9/decoder/vp9_idct_blk.c
index 42b805f8e..395e636b8 100644
--- a/vp9/decoder/vp9_idct_blk.c
+++ b/vp9/decoder/vp9_idct_blk.c
@@ -123,14 +123,8 @@ void vp9_idct_add_16x16_c(int16_t *input, uint8_t *dest, int stride, int eob) {
if (eob) {
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_idct16x16() is modified. */
- vp9_short_idct1_16x16_c(&in, &out);
+ vp9_short_idct16x16_1_add(input, dest, stride);
input[0] = 0;
-
- vp9_add_constant_residual_16x16(out, dest, stride);
} else if (eob <= 10) {
vp9_short_idct10_16x16_add(input, dest, stride);
vpx_memset(input, 0, 512);