mirror of
https://github.com/webmproject/libwebp.git
synced 2024-11-20 04:18:26 +01:00
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:
parent
01f50663dc
commit
889a578681
@ -144,7 +144,7 @@ static int VP8LEncAnalyze(VP8LEncoder* const enc) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (8 * pred_entropy < 7 * non_pred_entropy) {
|
||||
if (20 * pred_entropy < 19 * non_pred_entropy) {
|
||||
enc->use_predict_ = 1;
|
||||
enc->use_cross_color_ = 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user