Commit 2ad7a4a2 authored by Paul Wilkins's avatar Paul Wilkins
Browse files

Bug fix in vp8_estimate_entropy_savings()

Incorrect scaling of savings for t8x8.

Change-Id: If01e08f8c73faa73afc3c70e501e6acc54d7e26f
parent d8670b3c
...@@ -1765,6 +1765,7 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi) ...@@ -1765,6 +1765,7 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi)
/* do not do this if not evena allowed */ /* do not do this if not evena allowed */
if(cpi->common.txfm_mode == ALLOW_8X8) if(cpi->common.txfm_mode == ALLOW_8X8)
{ {
int savings8x8 = 0;
do do
{ {
int j = 0; int j = 0;
...@@ -1803,7 +1804,7 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi) ...@@ -1803,7 +1804,7 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi)
const int s = old_b - new_b - update_b; const int s = old_b - new_b - update_b;
if (s > 0) if (s > 0)
savings += s; savings8x8 += s;
} }
...@@ -1816,6 +1817,8 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi) ...@@ -1816,6 +1817,8 @@ int vp8_estimate_entropy_savings(VP8_COMP *cpi)
while (++j < COEF_BANDS); while (++j < COEF_BANDS);
} }
while (++i < BLOCK_TYPES); while (++i < BLOCK_TYPES);
savings += savings8x8 >> 8;
} }
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment