vf_ssim: print per-channel dB values.
This commit is contained in:
parent
81d7f118e2
commit
e7d9061d4f
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user