VR-Forces 4.1.1 Class Documentation
List of all members | Classes | Public Types | Public Member Functions | Static Public Member Functions
makVrv::DtMeifConverter Class Reference

Class responsible for converting images into MAK encrypted image files. More...

Classes

struct  CompositeImage

Public Types

typedef std::vector
< CompositeImage
ImageList

Public Member Functions

 DtMeifConverter ()
 CTOR.
 ~DtMeifConverter ()
 DTOR.
bool createEncryptedImage (const std::string &filename, const std::string &outputFile, bool flipOutputImage, bool normalMap, bool verbose)
 Encrypt a image from a file.
bool createCompressedImage (osg::ref_ptr< osg::Image > img, const std::string &outputFile, bool flipOutputImage, bool normalMap, bool generateMipMaps, bool verbose)
 Create a compressed image.
bool compositeImages (const ImageList &files, const std::string &outputFile, int outputWidth, int outputHeight, int cols, int rows, bool forceNoAlpha, bool composeRowsTopToBottom, bool verbose)
 Composite images together, the list of files is in row major order.
void resizeImagePow2 (osg::Image *img)
 Resizes the image to the next power of 2.
bool createBinaryData (unsigned int compressedFormat, osg::ref_ptr< osg::Image > img, bool mipMaps, bool verbose, unsigned int &blockDataSize, unsigned char *&blockData, bool &deleteBlockData)
 Create the raw binary data to write out.

Static Public Member Functions

static bool convertToRGBA (osg::ref_ptr< osg::Image > img, unsigned char *&rgbaPixels, bool &deletePixels, bool verbose)
 Convert an image to a buffer of RGBA pixels.
static bool isPowerOf2 (unsigned int i)
static unsigned int nextPowerOf2 (unsigned int i)
static unsigned int logBase2 (unsigned int i)

Detailed Description

Class responsible for converting images into MAK encrypted image files.

Member Typedef Documentation

Constructor & Destructor Documentation

makVrv::DtMeifConverter::DtMeifConverter ( )

CTOR.

makVrv::DtMeifConverter::~DtMeifConverter ( )

DTOR.

Member Function Documentation

bool makVrv::DtMeifConverter::createEncryptedImage ( const std::string &  filename,
const std::string &  outputFile,
bool  flipOutputImage,
bool  normalMap,
bool  verbose 
)

Encrypt a image from a file.

bool makVrv::DtMeifConverter::createCompressedImage ( osg::ref_ptr< osg::Image >  img,
const std::string &  outputFile,
bool  flipOutputImage,
bool  normalMap,
bool  generateMipMaps,
bool  verbose 
)

Create a compressed image.

bool makVrv::DtMeifConverter::compositeImages ( const ImageList files,
const std::string &  outputFile,
int  outputWidth,
int  outputHeight,
int  cols,
int  rows,
bool  forceNoAlpha,
bool  composeRowsTopToBottom,
bool  verbose 
)

Composite images together, the list of files is in row major order.

static bool makVrv::DtMeifConverter::convertToRGBA ( osg::ref_ptr< osg::Image >  img,
unsigned char *&  rgbaPixels,
bool deletePixels,
bool  verbose 
)
static

Convert an image to a buffer of RGBA pixels.

void makVrv::DtMeifConverter::resizeImagePow2 ( osg::Image *  img)

Resizes the image to the next power of 2.

bool makVrv::DtMeifConverter::createBinaryData ( unsigned int  compressedFormat,
osg::ref_ptr< osg::Image >  img,
bool  mipMaps,
bool  verbose,
unsigned int &  blockDataSize,
unsigned char *&  blockData,
bool deleteBlockData 
)

Create the raw binary data to write out.

static bool makVrv::DtMeifConverter::isPowerOf2 ( unsigned int  i)
inlinestatic
static unsigned int makVrv::DtMeifConverter::nextPowerOf2 ( unsigned int  i)
inlinestatic
static unsigned int makVrv::DtMeifConverter::logBase2 ( unsigned int  i)
inlinestatic

The documentation for this class was generated from the following file:

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)