Improve predict vs no-predict heuristic.

This improves compression density. For example, at quality 95 on 1000 PNGs:
bpp(before) = 2.447 and bpp(after) = 2.412

Change-Id: I19c343ba05cca48a6940293721066502a5c3d693
This commit is contained in:
Urvang Joshi 2012-04-26 09:41:45 +00:00 committed by James Zern
parent 01f50663dc
commit 889a578681

View File

@ -144,7 +144,7 @@ static int VP8LEncAnalyze(VP8LEncoder* const enc) {
return 0; return 0;
} }
if (8 * pred_entropy < 7 * non_pred_entropy) { if (20 * pred_entropy < 19 * non_pred_entropy) {
enc->use_predict_ = 1; enc->use_predict_ = 1;
enc->use_cross_color_ = 1; enc->use_cross_color_ = 1;
} }