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

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat May 28 23:04:07 CEST 2011


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavfi-add-LUT-LookUp-Table-YUV-and-RGB-generic-filte.patch
Type: text/x-diff
Size: 12953 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110528/2de0bbc5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-lavfi-add-negate-filter.patch
Type: text/x-diff
Size: 3677 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110528/2de0bbc5/attachment-0001.bin>


More information about the ffmpeg-devel mailing list