[FFmpeg-devel] port mplayer eq filter to libavfilter

William Yu genwillyu
Tue Nov 23 15:22:47 CET 2010


I have fix the problem mention below.
and change to directly process the input picture.
Please check it again.
BTW, I had send a mail to D Richard Felker III <dalias <at> aerifal.cx>.
If he agree relicense these under LGPL. I will patch it to LGPL. Thanks.

2010/11/22 Stefano Sabatini <stefano.sabatini-lala at poste.it>:
> 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
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_eq.diff
Type: application/octet-stream
Size: 10525 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20101123/2f0785e7/attachment.obj>



More information about the ffmpeg-devel mailing list