For several bits/format combinations that we didn't account for, fail rather than crash. And speculatively interpret IEEEFP/16bit as 'half', even though it's not in the TIFF spec. Apparently, some recent versions of PhotoShop are outputting this. In this review, I only support it for reading, not writing, since so few other TIFF-reading apps are likely to make any sense of it (we still auto-convert 'half' output to 'float' for TIFF output).
You can merge this Pull Request by running: git pull https://github.com/lgritz/oiio lg-tiffhalf Or you can view, comment on it, or merge it online at: https://github.com/OpenImageIO/oiio/pull/203 -- Commit Summary -- * Better handling of unexpected TIFF bitsperpixel/format combinations -- fail rather than crash, and speculatively interpret IEEEFP/16bit as 'half', even though it's not in the TIFF spec. -- File Changes -- M src/tiff.imageio/tiffinput.cpp (12) -- Patch Links -- https://github.com/OpenImageIO/oiio/pull/203.patch https://github.com/OpenImageIO/oiio/pull/203.diff --- Reply to this email directly or view it on GitHub: https://github.com/OpenImageIO/oiio/pull/203 _______________________________________________ Oiio-dev mailing list [email protected] http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org
