[FFmpeg-devel] [PATCH] avfilter: add ssim filter
Ronald S. Bultje
rsbultje at gmail.com
Mon Jun 22 19:46:57 CEST 2015
Hi,
On Mon, Jun 22, 2015 at 12:23 PM, Paul B Mahol <onemda at gmail.com> wrote:
> + c[0] = ssim(main->data[0], main->linesize[0],
> + ref->data[0], ref->linesize[0],
> + s->planewidth[0], s->planeheight[0]);
> +
> + c[1] = ssim(main->data[1], main->linesize[1],
> + ref->data[1], ref->linesize[1],
> + s->planewidth[1], s->planeheight[1]);
> +
> + c[2] = ssim(main->data[2], main->linesize[2],
> + ref->data[2], ref->linesize[2],
> + s->planewidth[2], s->planeheight[2]);
> +
> + ssimv = c[0] * .8 + .1 * (c[1] + c[2]);
> +
> + set_meta(metadata, "lavfi.ssim.", s->comps[0], c[0]);
> + set_meta(metadata, "lavfi.ssim.", s->comps[1], c[1]);
> + set_meta(metadata, "lavfi.ssim.", s->comps[2], c[2]);
> + set_meta(metadata, "lavfi.ssim.All", 0, ssimv);
So there are just the floats right? Can you convert them to dB values as
tiny_ssim does?
Ronald
More information about the ffmpeg-devel
mailing list