forked from FFmpeg/FFmpeg
avfilter/vf_ssim: use log10 instead of log()/log(10)
This is likely more precise and conveys the intent better. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
ec66bcc0e7
commit
b8e1980807
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ static float ssim_plane(SSIMDSPContext *dsp,
|
|||
|
||||
static double ssim_db(double ssim, double weight)
|
||||
{
|
||||
return 10 * (log(weight) / log(10) - log(weight - ssim) / log(10));
|
||||
return 10 * log10(weight / (weight - ssim));
|
||||
}
|
||||
|
||||
static AVFrame *do_ssim(AVFilterContext *ctx, AVFrame *main,
|
||||
|
|
Loading…
Add table
Reference in a new issue