[FFmpeg-devel] port mplayer eq filter to libavfilter

Bobby Bingham uhmmmm
Tue Nov 23 04:48:42 CET 2010


On Mon, 22 Nov 2010 20:33:11 +0800
William Yu <genwillyu at gmail.com> wrote:
> [...]
> +
> +static void end_frame(AVFilterLink *link)
> +{
> +    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);
> +
> +    avfilter_unref_buffer(in);
> +    avfilter_draw_slice(link->dst->outputs[0], 0, link->h, 1);
> +    avfilter_end_frame(link->dst->outputs[0]);
> +    avfilter_unref_buffer(out);
> +}

It should be possible to do this processing within draw_slice.

> [...]

-- 
Bobby Bingham
??????????????????????



More information about the ffmpeg-devel mailing list