[MPlayer-dev-eng] soft equalizer video filter

D Richard Felker III dalias at aerifal.cx
Wed Aug 21 18:47:45 CEST 2002


On Wed, Aug 21, 2002 at 01:55:26PM +0200, Felix Buenemann wrote:
> On Wednesday 21 August 2002 11:30, D Richard Felker III wrote:
> > Here's a quick implementation of a software equalizer
> > (brightness/contrast only) for mplayer/mencoder. The function
> > process() should be optimized and ideally use mmx, etc., but it works
> > well enough. I use it with my g200 (no hardware eq), but it could also
> > be useful for mencoder, for fixing movies encoded from tv/vhs/etc.
> > with bad brightness and contrast, and/or for reducing the contrast
> > slightly before encoding to improve quality/compression. Syntax is
> > -vop eq[=brightness:contrast]. Normal keyboard controls also work for
> > setting values interactively. As long as it's ok I'll commit to CVS
> > soon.
> hmm, just a question:
> shouldn't brightness/contrast be independent of chrominance and thus work with 
> all YUV formats (-> operate only on luminance)? Now you seem to only support 
> YUV 4:2:0.

Yes most definitely. In fact the code will work with any planar YUV
format, I just didn't bother to figure out what all the IMGFMT's
needed in the switch are yet. Or perhaps there's a simple way to just
check if the format is planar YUV without knowing all of them...?

Rich




More information about the MPlayer-dev-eng mailing list