Hi,

I need to write images to the disk, and am facing a problem that seems so basic i'm wondering if I'm not missing something obvious.

I need to write specific channels to an image. For example, write UVW values next to RGBA 'standard' data. Using directly OpenEXR, i would create the seven channels one after another and fill each channel with matching data. Our application (Clarisse IFx) stores data per channel so it would be pretty straigthforward.

I have seen no way using OIIO to do such a thing: there is no writeScanline function that would take start / end channels: i can't write data channel per channel. The only thing I could do is build a huge interlaced buffer gathering all channels from my image and call "writeimage", but i fear it would use an horrible amount of memory and extra processing that seems unecessary.

Should I check the file format first and directly instanciate an EXROutput or TiffOutput when needed ? How could I set channel names ?


Thanks in advance for your help,

Michel
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to