On Feb 17, 2017, at 4:35 PM, Andrew Wood <[email protected]> wrote:
> 
> Thanks Larry!  That totally did it!

Excellent.

> While I've got your eyes, is there something I'm missing conceptually about 
> the ColorProcessors with more than rgb channels?  If I send in rgba, I get 
> back an image with no alpha anymore, regardless of the unpremult parameter.  
> I would hope that I could just skip doing color processing on the channel.  I 
> know there's an roi param, the current default behavior seems a little odd.

Hmmm... it looks like colortransform only copies up to the first 4 channels. I 
suppose that a better default behavior would be to copy any additional channels 
unchanged (rather than dropping them on the floor).

The mystery is alpha. It *looks* like that should just work (i.e. alpha gets 
copied from src to dst), but maybe I'm misinterpreting what OCIO's 
Processor::apply() will do. I need to make a test case. But I think that no 
OCIO color transforms will do anything but pass alpha through unmodified, so 
maybe my best best is to just leave alpha out of the mix for OCIO and copy it 
myself. In either case, I think I can make somewhat better behavior for you. 
Stay tuned, I'll prepare a patch when I get a chance.

--
Larry Gritz
[email protected]


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

Reply via email to