aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-10-22 14:51:11 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-10-22 17:18:40 -0400
commite7d9061d4f932b382d1b7776e2e11729d4ff5b52 (patch)
tree429630438af8e1f1a50b89055bc93f32c532398e /libavfilter
parent81d7f118e20c3fec05e484699faa5d58ca381271 (diff)
downloadffmpeg-e7d9061d4f932b382d1b7776e2e11729d4ff5b52.tar.gz
vf_ssim: print per-channel dB values.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_ssim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/vf_ssim.c b/libavfilter/vf_ssim.c
index b23d447003..4dc96a73fb 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));