[FFmpeg-devel] port mplayer eq filter to libavfilter
Stefano Sabatini
stefano.sabatini-lala
Mon Nov 22 16:21:01 CET 2010
On date Monday 2010-11-22 15:15:25 +0100, Stefano Sabatini encoded:
> On date Monday 2010-11-22 20:33:11 +0800, William Yu encoded:
[...]
> > +}
> > +
> > +static void end_frame(AVFilterLink *link)
>
> inlink for enhanced readability
>
> > +{
> > + EQContext * eq = link->dst->priv;
> > + AVFilterBufferRef *in = link->cur_buf;
> > + AVFilterBufferRef *out = link->dst->outputs[0]->out_buf;
> > +
> > + eq->process(out->data[0], out->linesize[0],
> > + in->data[0], in->linesize[0],
> > + link->w, link->h, eq->brightness, eq->contrast);
> > + copy_chroma(in,out,link);
Also is it really necessary to copy the chroma planes to a new frame?
Maybe It would be possible to directly process the input picture, no need to
allocate another one and to copy back the chroma planes.
Regards.
--
FFmpeg = Fundamentalist & Free Multipurpose Portable Ecumenical God
More information about the ffmpeg-devel
mailing list