On 11/21/15, Clement Boesch <u...@pkh.me> wrote: > 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? > > -- > Clement B. >
I'm more interested in beter algorithm for flash removal. _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel