Hi,

OIIO is an amazing piece of software, saving me an enormous amount of time
and headache. In my case it unfortunately has to be interfaced with QT's
QImage container, which is quite limited in what image formats it
understands. The one I'm lacking is a 3-channel float image. Floats are
crucial for the use case.

I need to be able to read all kinds of images into an uniform buffer - RGBA
float.
For example, if an image only has 3 channels, I'd fill the A values with
1.0f. So far I am doing this by just copying the RGB buffer into a RGBA one
pixel by pixel and adding the alpha values. This of course is absolutely
wasteful and slow, it would be perfect if I could somehow instruct OCIO to
read any images into an RGBA format buffer.

Trying to simply set the ImageSpec to the desired channel number and
ordering results in images being read improperly.

Is there a straightforward way to do this? Any help is greatly appreciated.

Best regards,

Bart Styczen,
CineDev
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to