aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorRonald S. Bultje <rsbultje@gmail.com>2015-08-05 07:30:16 -0400
committerRonald S. Bultje <rsbultje@gmail.com>2015-08-05 09:19:09 -0400
commit22b30f925d0db181dc63cb3e684d40377c7d0b38 (patch)
treed400a8992105517a5be4f9899f9f49aeff8d2a0e /libavfilter
parent45d9d16863deb005ab3adfce10c1038004c46c3b (diff)
downloadffmpeg-22b30f925d0db181dc63cb3e684d40377c7d0b38.tar.gz
vf_psnr: add psnr_avg to stats file.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_psnr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
index f202df3857..3c1dc81a7a 100644
--- a/libavfilter/vf_psnr.c
+++ b/libavfilter/vf_psnr.c
@@ -174,6 +174,7 @@ static AVFrame *do_psnr(AVFilterContext *ctx, AVFrame *main,
c = s->is_rgb ? s->rgba_map[j] : j;
fprintf(s->stats_file, "mse_%c:%0.2f ", s->comps[j], comp_mse[c]);
}
+ fprintf(s->stats_file, "psnr_avg:%0.2f ", get_psnr(mse, 1, s->average_max));
for (j = 0; j < s->nb_components; j++) {
c = s->is_rgb ? s->rgba_map[j] : j;
fprintf(s->stats_file, "psnr_%c:%0.2f ", s->comps[j],