Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

osg::ImageFileType::Head Struct Reference

#include <OSGImageFileType.h>

List of all members.

Public Member Functions

bool netToHost (void)
bool hostToNet (void)

Public Attributes

Char8 mimeType [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


Detailed Description

Definition at line 145 of file OSGImageFileType.h.


Member Function Documentation

bool ImageFileType::Head::netToHost void   ) 
 

Helper method to convert the Head block from net to host format

Definition at line 61 of file OSGImageFileType.cpp.

References _reserved3, _reserved4, attachmentSize, dataType, depth, frameCount, frameDelay, height, mipmapCount, osg::osgntohs(), pixelFormat, sideCount, and width.

00062 {
00063     pixelFormat    = osgntohs(pixelFormat);
00064     width          = osgntohs(width);
00065     height         = osgntohs(height);
00066     depth          = osgntohs(depth);
00067     mipmapCount    = osgntohs(mipmapCount);
00068     frameCount     = osgntohs(frameCount);
00069     frameDelay     = osgntohs(frameDelay);
00070     sideCount      = osgntohs(sideCount);
00071     dataType       = osgntohs(dataType);
00072     _reserved3     = 0;
00073     _reserved4     = 0;
00074     attachmentSize = osgntohs(attachmentSize);
00075 
00076     return true;
00077 }

bool ImageFileType::Head::hostToNet void   ) 
 

Helper method to convert the Head block from host to net format

Definition at line 84 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().

00085 {
00086     pixelFormat    = osghtons(pixelFormat);
00087     width          = osghtons(width);
00088     height         = osghtons(height);
00089     depth          = osghtons(depth);
00090     mipmapCount    = osghtons(mipmapCount);
00091     frameCount     = osghtons(frameCount);
00092     frameDelay     = osghtons(frameDelay);
00093     sideCount      = osghtons(sideCount);
00094     dataType       = osghtons(dataType);
00095     _reserved3     = 0;
00096     _reserved4     = 0;
00097     attachmentSize = osghtons(attachmentSize);
00098 
00099     return true;
00100 }


Member Data Documentation

Char8 osg::ImageFileType::Head::mimeType[8]
 

Definition at line 146 of file OSGImageFileType.h.

Referenced by osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::pixelFormat
 

Definition at line 147 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::width
 

Definition at line 148 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::height
 

Definition at line 149 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::depth
 

Definition at line 150 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::mipmapCount
 

Definition at line 151 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::frameCount
 

Definition at line 152 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::frameDelay
 

Definition at line 153 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::sideCount
 

Definition at line 154 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::dataType
 

Definition at line 155 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().

unsigned short osg::ImageFileType::Head::_reserved3
 

Definition at line 156 of file OSGImageFileType.h.

Referenced by hostToNet(), and netToHost().

unsigned short osg::ImageFileType::Head::_reserved4
 

Definition at line 157 of file OSGImageFileType.h.

Referenced by hostToNet(), and netToHost().

unsigned short osg::ImageFileType::Head::attachmentSize
 

Definition at line 158 of file OSGImageFileType.h.

Referenced by hostToNet(), netToHost(), and osg::ImageFileType::store().


The documentation for this struct was generated from the following files:
Generated on Thu Aug 25 04:14:22 2005 for OpenSG by  doxygen 1.4.3