#include <OSGImageFileType.h>
Public Member Functions | |
| bool | netToHost (void) |
| bool | hostToNet (void) |
Public Attributes | |
| Char8 | suffix [8] |
| unsigned short | pixelFormat |
| unsigned short | width |
| unsigned short | height |
| unsigned short | depth |
| unsigned short | mipmapCount |
| unsigned short | frameCount |
| unsigned short | frameDelay |
| unsigned short | sideCount |
| unsigned short | dataType |
| unsigned short | _reserved3 |
| unsigned short | _reserved4 |
| unsigned short | attachmentSize |
Definition at line 162 of file OSGImageFileType.h.
| bool ImageFileType::Head::netToHost | ( | void | ) |
Helper method to convert the Head block from net to host format
Definition at line 62 of file OSGImageFileType.cpp.
References _reserved3, _reserved4, attachmentSize, dataType, depth, frameCount, frameDelay, height, mipmapCount, osg::osgntohs(), pixelFormat, sideCount, and width.
Referenced by osg::MTDImageFileType::read(), and osg::ImageFileType::restore().
00063 { 00064 pixelFormat = osgntohs(pixelFormat); 00065 width = osgntohs(width); 00066 height = osgntohs(height); 00067 depth = osgntohs(depth); 00068 mipmapCount = osgntohs(mipmapCount); 00069 frameCount = osgntohs(frameCount); 00070 frameDelay = osgntohs(frameDelay); 00071 sideCount = osgntohs(sideCount); 00072 dataType = osgntohs(dataType); 00073 _reserved3 = 0; 00074 _reserved4 = 0; 00075 attachmentSize = osgntohs(attachmentSize); 00076 00077 return true; 00078 }
| bool ImageFileType::Head::hostToNet | ( | void | ) |
Helper method to convert the Head block from host to net format
Definition at line 85 of file OSGImageFileType.cpp.
References _reserved3, _reserved4, attachmentSize, dataType, depth, frameCount, frameDelay, height, mipmapCount, osg::osghtons(), pixelFormat, sideCount, and width.
Referenced by osg::ImageFileType::store(), and osg::MTDImageFileType::write().
00086 { 00087 pixelFormat = osghtons(pixelFormat); 00088 width = osghtons(width); 00089 height = osghtons(height); 00090 depth = osghtons(depth); 00091 mipmapCount = osghtons(mipmapCount); 00092 frameCount = osghtons(frameCount); 00093 frameDelay = osghtons(frameDelay); 00094 sideCount = osghtons(sideCount); 00095 dataType = osghtons(dataType); 00096 _reserved3 = 0; 00097 _reserved4 = 0; 00098 attachmentSize = osghtons(attachmentSize); 00099 00100 return true; 00101 }
Definition at line 163 of file OSGImageFileType.h.
Referenced by osg::ImageFileType::restore(), and osg::ImageFileType::store().
| unsigned short osg::ImageFileType::Head::pixelFormat |
Definition at line 164 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::width |
Definition at line 165 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::height |
Definition at line 166 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::depth |
Definition at line 167 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::mipmapCount |
Definition at line 168 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::frameCount |
Definition at line 169 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::frameDelay |
Definition at line 170 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::sideCount |
Definition at line 171 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::dataType |
Definition at line 172 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), osg::MTDImageFileType::read(), osg::ImageFileType::restore(), osg::ImageFileType::store(), and osg::MTDImageFileType::write().
| unsigned short osg::ImageFileType::Head::_reserved3 |
Definition at line 173 of file OSGImageFileType.h.
Referenced by hostToNet(), and netToHost().
| unsigned short osg::ImageFileType::Head::_reserved4 |
Definition at line 174 of file OSGImageFileType.h.
Referenced by hostToNet(), and netToHost().
| unsigned short osg::ImageFileType::Head::attachmentSize |
Definition at line 175 of file OSGImageFileType.h.
Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().
1.6.1