[FFmpeg-soc] [RFC] Apply function to pixel filter: vf_applyfn
zeger at customsoft.nl
zeger at customsoft.nl
Sun May 24 20:19:34 CEST 2009
Hi,
A lot of image operations like gamma adjustment, color inversion or
contrast enhancement can be expressed as a simple function applied
to each pixel. I have written a YUV(A) only filter to apply these
functions.
For example: color inversion becomes applyfn=255-Y:255-U:255-V.
If the pow function would be available a gamma correction would
look like this: applyfn=255*pow(Y/255\,0.25):U:V
Zeger Knops
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vf_applyfn.diff
Type: text/x-diff
Size: 8944 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-soc/attachments/20090524/990cda48/attachment.diff>
More information about the FFmpeg-soc
mailing list