summaryrefslogtreecommitdiff
path: root/vp8/common/idctllm.c
diff options
context:
space:
mode:
authorYaowu Xu <yaowu@google.com>2011-11-04 19:08:51 -0700
committerPaul Wilkins <paulwilkins@google.com>2011-11-08 16:15:41 +0000
commit6e165e86a7fe5b2609194a82b816a56dd7305ec7 (patch)
tree552529d261c9ce6b2bc5c3d10baeacf71c79ad31 /vp8/common/idctllm.c
parenta9df4183a6587719c9530d45d5dbd81530be9e7b (diff)
downloadlibvpx-6e165e86a7fe5b2609194a82b816a56dd7305ec7.tar
libvpx-6e165e86a7fe5b2609194a82b816a56dd7305ec7.tar.gz
libvpx-6e165e86a7fe5b2609194a82b816a56dd7305ec7.tar.bz2
libvpx-6e165e86a7fe5b2609194a82b816a56dd7305ec7.zip
Attempt to fix an issue related to 8x8 transform and segfeature
logically this commit should NOT change anything, but seems to help revert the 3DB loss on bowing in the following commit: https://on2-git.corp.google.com/g/#change,6193 This is still debugging in progress. Need further investigation to understand the root cause of the issue. Change-Id: I0b49d1ef3a311dfff58c6acd3eaebdb3bda6257c
Diffstat (limited to 'vp8/common/idctllm.c')
-rw-r--r--vp8/common/idctllm.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/vp8/common/idctllm.c b/vp8/common/idctllm.c
index a0042ae6d..ba4beb4ca 100644
--- a/vp8/common/idctllm.c
+++ b/vp8/common/idctllm.c
@@ -399,14 +399,14 @@ static void idctcol (int *blk)
x4 = (181 * (x4 - x5) + 128) >> 8;
/* fourth stage */
- blk[8 * 0] = (x7 + x1 ) >> 15;
- blk[8 * 1] = (x3 + x2 ) >> 15;
- blk[8 * 2] = (x0 + x4 ) >> 15;
- blk[8 * 3] = (x8 + x6 ) >> 15;
- blk[8 * 4] = (x8 - x6 ) >> 15;
- blk[8 * 5] = (x0 - x4 ) >> 15;
- blk[8 * 6] = (x3 - x2 ) >> 15;
- blk[8 * 7] = (x7 - x1 ) >> 15;
+ blk[8 * 0] = (x7 + x1 ) >> 14;
+ blk[8 * 1] = (x3 + x2 ) >> 14;
+ blk[8 * 2] = (x0 + x4 ) >> 14;
+ blk[8 * 3] = (x8 + x6 ) >> 14;
+ blk[8 * 4] = (x8 - x6 ) >> 14;
+ blk[8 * 5] = (x0 - x4 ) >> 14;
+ blk[8 * 6] = (x3 - x2 ) >> 14;
+ blk[8 * 7] = (x7 - x1 ) >> 14;
}
#define TX_DIM 8
@@ -434,7 +434,7 @@ void vp8_short_idct8x8_c(short *coefs, short *block, int pitch)
{
for (j = 0; j < TX_DIM; j++)
{
- block[i*shortpitch+j] = X[i * TX_DIM + j];
+ block[i*shortpitch+j] = X[i * TX_DIM + j]>>1;
}
}
}