diff options
author | Yaowu Xu <yaowu@google.com> | 2013-11-08 09:49:08 -0800 |
---|---|---|
committer | Yaowu Xu <yaowu@google.com> | 2013-11-08 10:32:44 -0800 |
commit | a4a5a210cb8eb267301c24fa7680796c14e153e8 (patch) | |
tree | 9ef6e9a003a5c47902fd9eb566e085f861eb39d3 /vp9/encoder | |
parent | 283427c053c534267d37c1337d9f77c40fb16099 (diff) | |
download | libvpx-a4a5a210cb8eb267301c24fa7680796c14e153e8.tar libvpx-a4a5a210cb8eb267301c24fa7680796c14e153e8.tar.gz libvpx-a4a5a210cb8eb267301c24fa7680796c14e153e8.tar.bz2 libvpx-a4a5a210cb8eb267301c24fa7680796c14e153e8.zip |
Disable zeroblock forcing for lossless coding mode
This to make sure that prediction residue always get coded in lossless
mode.
This commit also fixed lossless unit test
Change-Id: I537726ee55328d4e4cf0a0196393a67e12bfcde1
Diffstat (limited to 'vp9/encoder')
-rw-r--r-- | vp9/encoder/vp9_rdopt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vp9/encoder/vp9_rdopt.c b/vp9/encoder/vp9_rdopt.c index 993919e5b..e49789e0c 100644 --- a/vp9/encoder/vp9_rdopt.c +++ b/vp9/encoder/vp9_rdopt.c @@ -609,7 +609,7 @@ static void block_yrd_txfm(int plane, int block, BLOCK_SIZE plane_bsize, // TODO(jingning): temporarily enabled only for luma component rd = MIN(rd1, rd2); - if (plane == 0) + if (!xd->lossless && plane == 0) x->zcoeff_blk[tx_size][block] = rd1 > rd2 || !xd->plane[plane].eobs[block]; args->this_rate += args->rate; |