openexr-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Openexr-devel] [Offtopic]| half lossy datatype


From: Paul Miller
Subject: Re: [Openexr-devel] [Offtopic]| half lossy datatype
Date: Wed, 30 Apr 2014 14:30:26 -0500
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 4/30/2014 2:08 PM, Gonzalo Garramuno wrote:
I find myself with updating ffmpeg's exr reader (don't ask). One thing i
am trying to do is add a gamma function to the reading of the format,
with a gamma table.
However, I find myself against a wall not being able to get the float
and half float to behave correctly.  I end up with greens in places
where there were negative values or nans.
I am wondering if someone could take a look at these functions I am
using to see if some bit is being set wrong.  Or if it is indeed
impossible to have half->float->half (as done in my filling of the
table) mantaining the same values (with gamma 1.0).

pow() doesn't like negative values, and I've seen different results on different machines. You should clip negatives before calling it.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]