mirror of
https://github.com/webmproject/libwebp.git
synced 2025-07-18 23:09:52 +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:
@ -256,7 +256,7 @@ static WEBP_INLINE float BitsEntropyRefine(const VP8LBitEntropy* entropy) {
|
||||
}
|
||||
|
||||
{
|
||||
float min_limit = 2 * entropy->sum - entropy->max_val;
|
||||
float min_limit = 2.f * entropy->sum - entropy->max_val;
|
||||
min_limit = mix * min_limit + (1.f - mix) * entropy->entropy;
|
||||
return (entropy->entropy < min_limit) ? min_limit : entropy->entropy;
|
||||
}
|
||||
|
Reference in New Issue
Block a user