On 30/04/14 16:30, Paul Miller wrote:
pow() doesn't like negative values, and I've seen different results on
different machines. You should clip negatives before calling it.
Thanks. That was part of the problem. However, I still don't get a
clean transition from float to half uint16. There are differences in
the result between calling exr_halflt2uint( uint16_t ) and doing
exr_half2float(uint16_t) + exr_flt2uint(uint32_t).
My guess is that it is because conversion from float to half is lossy.
_______________________________________________
Openexr-devel mailing list
Openexr-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/openexr-devel