[FFmpeg-cvslog] vf_ssim: print per-channel dB values.

Ronald S. Bultje git at videolan.org
Thu Oct 22 23:42:32 CEST 2015


ffmpeg | branch: master | Ronald S. Bultje <rsbultje at gmail.com> | Thu Oct 22 14:51:11 2015 -0400| [e7d9061d4f932b382d1b7776e2e11729d4ff5b52] | committer: Ronald S. Bultje

vf_ssim: print per-channel dB values.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e7d9061d4f932b382d1b7776e2e11729d4ff5b52
---

 libavfilter/vf_ssim.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c
index b23d447..4dc96a7 100644
--- a/libavfilter/vf_ssim.c
+++ b/libavfilter/vf_ssim.c
@@ -348,7 +348,8 @@ static av_cold void uninit(AVFilterContext *ctx)
         buf[0] = 0;
         for (i = 0; i < s->nb_components; i++) {
             int c = s->is_rgb ? s->rgba_map[i] : i;
-            av_strlcatf(buf, sizeof(buf), " %c:%f", s->comps[i], s->ssim[c] / s->nb_frames);
+            av_strlcatf(buf, sizeof(buf), " %c:%f (%f)", s->comps[i], s->ssim[c] / s->nb_frames,
+                        ssim_db(s->ssim[c], s->nb_frames));
         }
         av_log(ctx, AV_LOG_INFO, "SSIM%s All:%f (%f)\n", buf,
                s->ssim_total / s->nb_frames, ssim_db(s->ssim_total, s->nb_frames));



More information about the ffmpeg-cvslog mailing list