On Nov 14, 2012, at 1:04 AM, Michel Lerenard wrote:
> I did noticed it, but it doesn't bother me that much (i am using these
> functions). I thought there was a good reason behind it.
Do you use them to get arbitrary ranges, or do you use the "channel subset"
version only to extract a single channel at a time?
> I think it would be better to harmonize the parameters, and drop the range
> version.
Drop the range version? The "range" version is begin/end. Or did you mean use
the range notation everywhere?
> Having both will complicated things, the signatures being the same we'd need
> to have different function names.
Ick, I hate to add more functions and pick a less convenient name. Did you see
the response I wrote to John's mail? I proposed that if chend<=chbegin, it
means to read one channel. That would make the "all channels" and "one
channel" case strictly back-compatible. Do you think that would cover enough
cases that it would be ok to change the meaning of those parameters, even
though the type signature has remained the same?
-- lg
--
Larry Gritz
[email protected]
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org