mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-15 21:39:59 +02:00
{histogram,predictor}_enc: quiet int -> float warnings
after:
a19a25bb
Replace doubles by floats in lossless misc cost estimations.
Change-Id: Idc5888b40ce5b591b72c6e51a188a9ab8c5d9823
This commit is contained in:
@ -35,7 +35,7 @@ static float PredictionCostSpatial(const int counts[256], int weight_0,
|
||||
float exp_val) {
|
||||
const int significant_symbols = 256 >> 4;
|
||||
const float exp_decay_factor = 0.6f;
|
||||
float bits = weight_0 * counts[0];
|
||||
float bits = (float)weight_0 * counts[0];
|
||||
int i;
|
||||
for (i = 1; i < significant_symbols; ++i) {
|
||||
bits += exp_val * (counts[i] + counts[256 - i]);
|
||||
|
Reference in New Issue
Block a user