OpenImageIO/oiio — pull request #252 by lgritz (2012-03-14 06:07:10+00:00)
Title: Review: fix contiguization bug

Fix minor buglet in to_native_rectangle -- contiguous was calculated incorrectly for non-native data, leading to later errors in copying the buffers for certain format conversions, as well as leading to unnecessary contiguizing copies in other cases.

Along for the ride (found while tracking down that bug, but turned out not to be the issue): fix iconvert internals to handle int32, uint32 conversion cases; also move the "nocopy" test outside the conditional where it's more clear (and maybe more correct).