This patch modifies ReaderWriterPNG.cpp to 
1. Check the bit depth of the passed Image and return an error if not 8 or 16. 
(not fully featured, but still an improvement over hard coded 8bit for 
everything)
2. Detect GL_DEPTH_COMPONENT pixelFormat and write it as greyscale.
3. Endian swap 16bit image data when on a little endian architecture.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=47178#47178




Attachments: 
http://forum.openscenegraph.org//files/readerwriterpng_176.cpp


_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to