Reducing emerging palette size from 11 to 9 bits.

This is required to reduce memory used to construct histo_image.

Change-Id: I491a06e10a3e3f3d8a00ecec286394378283ffea
This commit is contained in:
Vikas Arora
2012-04-26 10:25:49 +00:00
committed by James Zern
parent bfc73db4a8
commit b39e7487a7
2 changed files with 5 additions and 3 deletions

View File

@ -751,7 +751,7 @@ int VP8LCalculateEstimateForCacheSize(
stream, &stream_size)) {
goto Error;
}
for (cache_bits = 0; cache_bits < 12; ++cache_bits) {
for (cache_bits = 0; cache_bits <= kColorCacheBitsMax; ++cache_bits) {
double cur_entropy;
VP8LHistogram histo;
VP8LHistogramInit(&histo, cache_bits);