diff options
author | Paul Wilkins <paulwilkins@google.com> | 2012-03-01 01:41:19 +0000 |
---|---|---|
committer | Paul Wilkins <paulwilkins@google.com> | 2012-03-01 01:42:02 +0000 |
commit | 2ad7a4a2711aa0ffe87add551e0368b5d2a2e025 (patch) | |
tree | 12bca15188a288a85996f0d936c55a1dedb383e5 /vp8/encoder/bitstream.c | |
parent | d8670b3c2eb224a25e95e260325699f2e44d4440 (diff) | |
download | libvpx-2ad7a4a2711aa0ffe87add551e0368b5d2a2e025.tar libvpx-2ad7a4a2711aa0ffe87add551e0368b5d2a2e025.tar.gz libvpx-2ad7a4a2711aa0ffe87add551e0368b5d2a2e025.tar.bz2 libvpx-2ad7a4a2711aa0ffe87add551e0368b5d2a2e025.zip |
Bug fix in vp8_estimate_entropy_savings()
Incorrect scaling of savings for t8x8.
Change-Id: If01e08f8c73faa73afc3c70e501e6acc54d7e26f
Diffstat (limited to 'vp8/encoder/bitstream.c')
-rw-r--r-- | vp8/encoder/bitstream.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vp8/encoder/bitstream.c b/vp8/encoder/bitstream.c index 8a5a6cdf9..5be404167 100644 --- a/vp8/encoder/bitstream.c +++ b/vp8/encoder/bitstream.c @@ -1765,6 +1765,7 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi) /* do not do this if not evena allowed */ if(cpi->common.txfm_mode == ALLOW_8X8) { + int savings8x8 = 0; do { int j = 0; @@ -1803,7 +1804,7 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi) const int s = old_b - new_b - update_b; if (s > 0) - savings += s; + savings8x8 += s; } @@ -1816,6 +1817,8 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi) while (++j < COEF_BANDS); } while (++i < BLOCK_TYPES); + + savings += savings8x8 >> 8; } #endif |