[FFmpeg-devel] [PATCH] avfilter: add deflash filter

Clément Bœsch u at pkh.me
Sat Nov 21 20:14:26 CET 2015


On Fri, Nov 20, 2015 at 08:13:11PM +0100, Paul B Mahol wrote:
[...]
> +        for (y = 0; y < h; y++) {
> +            for (x = 0; x < w; x++) {
> +                int diff = next[x] - src[x];
> +                int t = 0;
> +
> +                for (z = 0; z < FF_BUFQUEUE_SIZE - 1; z++) {
> +                    AVFrame *f1 = ff_bufqueue_peek(&s->q, z);
> +                    AVFrame *f2 = ff_bufqueue_peek(&s->q, z+1);
> +

f1 and f2 are const

> +                    t += FFABS(f2->data[p][f2->linesize[p] * y + x] - f1->data[p][f1->linesize[p] * y + x]);

fabs()?

looks like you could use sad utils and/or threading

[...]

doc?

-- 
Clément B.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151121/2df4d1de/attachment.sig>


More information about the ffmpeg-devel mailing list