Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-10-22 21:51:11 +0300
committerRonald S. Bultje <rsbultje@gmail.com>2015-10-23 00:18:40 +0300
commite7d9061d4f932b382d1b7776e2e11729d4ff5b52 (patch)
tree429630438af8e1f1a50b89055bc93f32c532398e /libavfilter/vf_ssim.c
parent81d7f118e20c3fec05e484699faa5d58ca381271 (diff)
vf_ssim: print per-channel dB values.
Diffstat (limited to 'libavfilter/vf_ssim.c')
-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));