[FFmpeg-devel] [PATCH] Add lut filter.

Michael Niedermayer michaelni at gmx.at
Sun Jun 5 22:31:43 CEST 2011


On Sat, May 28, 2011 at 11:04:07PM +0200, Stefano Sabatini wrote:
> On date Friday 2010-12-03 13:02:59 +0100, Stefano Sabatini wrote:
> > On date Friday 2010-12-03 02:04:47 +0100, Michael Niedermayer encoded:
> [...]
> > > the expression filter has been used to draw mandelbrot fractals, to texture
> > > map videos onto moving polygons and other things i forgot.
> > > a LUT is a good idea because its a hell alot faster but theres alot for which
> > > a generic expression evaluator is needed.
> > 
> > Here it is a first scratch.
> > 
> > This should be equivalent to the negate filter:
> > lut='y=maxv+minv-v:u=maxv+minv-v:v=maxv+minv-v'
> > 
> > (now I see that maybe 'v' was not a good choice for the input value).
> > 
> > it should be also possible to "wrap" a negate filter around this by
> > simply implementing a negate_init() function (but still lacks support
> > for monow/monob).
> > 
> > So having native support for monow/monob is the only reason for
> > keeping the negate filter, but maybe I can conceive some way to
> > support bitstream formats.
> > -- 
> > FFmpeg = Foolish Formidable Miracolous Philosophical Enhanced Gangster
> 
> > From ecda1bb4846754d2a651d2c80414563d7a9e19a7 Mon Sep 17 00:00:00 2001
> > From: Stefano Sabatini <stefano.sabatini-lala at poste.it>
> > Date: Fri, 3 Dec 2010 12:45:29 +0100
> > Subject: [PATCH] Implement lut filter.
> 
> Updated with RGB support and an example negate filter.
> 
> Still missing documentation.

patches look good except what has been already mentioned.
Also support for 9/10/...bit could be added later

and great work!

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110605/9123d5bf/attachment.asc>


More information about the ffmpeg-devel mailing list