[FFmpeg-devel] [PATCH] vf_psnr: add psnr_avg to stats file.
Ronald S. Bultje
rsbultje at gmail.com
Wed Aug 5 15:20:43 CEST 2015
Hi,
On Wed, Aug 5, 2015 at 7:56 AM, Paul B Mahol <onemda at gmail.com> wrote:
> Dana 5. 8. 2015. 13:31 osoba "Ronald S. Bultje" <rsbultje at gmail.com>
> napisala je:
> >
> > ---
> > libavfilter/vf_psnr.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/libavfilter/vf_psnr.c b/libavfilter/vf_psnr.c
> > index f202df3..3c1dc81 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],
> > --
> > 2.1.2
>
> LGTM
Applied.
Ronald
More information about the ffmpeg-devel
mailing list