[FFmpeg-devel] [PATCH] Add a gamma flag to exr loader to avoid banding

Gonzalo Garramuno ggarra13 at gmail.com
Fri May 2 16:22:49 CEST 2014

On 01/05/14 23:06, Michael Niedermayer wrote:
> float computations can differ in result between platforms, rounding
> can differ, compiler optimizations can differ
> i dont know if its either of these though thats causing the issue
> [...]
Find attached a patch that isolates the powf function to only work when 
gamma is different than 1.  And all negative values are clamped to 0.
The checksums don't need to be changed from 0x1f656d7a.
If it still does not work for you Michael, can you upload a png to with 
the image you get at http://www.datafilehost.com/ ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: exr_patch11.diff
Type: text/x-patch
Size: 5300 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140502/7a8ba8ee/attachment.bin>

More information about the ffmpeg-devel mailing list