Giving all this a second look, I feel uncomfortable with all the alpha
assumptions. These functions will be used by programmers and they should
know to set the alpha channel properly. The functions are not intended for
users that will type something on command line and expect us to guess what
they meant for every single case.

I say let's do it "what you push is what you get". Don't assume anything.
The input images must have same number of channels and alpha channel must
be specified in same position. If the programmer, the user of OIIO, feels
like handling all these cases for his application then he can have a
wrapper for our function where he can include any tests he likes before he
calls it.

At this point I need to ask where is OIIO going, is it a library to be used
by programmers for other applications or is it becoming an application by
itself?

I actually coded all the cases we talked about, but honestly it is getting
a mess. Think also about maintaining and extending this code later. What do
you guys think?

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

Reply via email to