[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Openexr-devel] Using Rgba interface for non-rgba files?
From: |
Florian Kainz |
Subject: |
Re: [Openexr-devel] Using Rgba interface for non-rgba files? |
Date: |
Thu, 07 Apr 2005 14:07:46 -0700 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 |
Paul Schneider wrote:
Another problem is that the Rgba interface (and the code that uses it)
is expecting half data. Other channels, especially XYZ, are likely to
be float; would the Rgba interface automatically downsample the channels
to half?
The xxxInputFile classes already do automatice conversion between pixel
data types. If you specify that your frame buffer contains half data (with
the RGBA interface this is always the case), then float and unsigned int
data will automatically be converted to half, preserving the numerical
value of the original data where possible. (Values greater than HALF_MAX
or less than -HALF_MAX are converted to positive or negative infinity.
Values between -HALF_MAX and HALF_MAX may have to be rounded.)