[FFmpeg-devel] port mplayer eq filter to libavfilter

Ronald S. Bultje rsbultje
Thu Nov 25 17:30:15 CET 2010


Hi,

On Thu, Nov 25, 2010 at 10:18 AM, Ronald S. Bultje <rsbultje at gmail.com> wrote:
> On Thu, Nov 25, 2010 at 4:27 AM, William Yu <genwillyu at gmail.com> wrote:
[..]
> +        for (i = w; i; i--) {
> +            pel = ((*line* contrast)>>16) + brightness;
> +            if (pel&768) pel = (-pel)>>31;
> +            *line++ = pel;
> +        }

Also, why not simply use av_clip_uint8()?

Ronald



More information about the ffmpeg-devel mailing list