VTFLib/VTFFile.cpp File Reference

#include "VTFLib.h"
#include "VTFFile.h"
#include "VTFFormat.h"
#include "VTFDXTn.h"
#include "VTFMathlib.h"

Include dependency graph for VTFFile.cpp:


Classes

struct  SphereMapFace
struct  NColour
struct  tagSVTFImageConvertInfo

Typedefs

typedef vlVoid(* TransformProc )(vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)
typedef struct
tagSVTFImageConvertInfo 
SVTFImageConvertInfo

Functions

vlVoid ToLuminance (vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)
vlVoid FromLuminance (vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)
vlVoid ToBlueScreen (vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)
vlVoid FromBlueScreen (vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)
vlVoid ToFP16 (vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)
vlSingle ClampFP16 (vlSingle sValue)
vlVoid FromFP16 (vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)
template<typename T>
vlVoid GetShiftAndMask (const SVTFImageConvertInfo &Info, T &uiRShift, T &uiGShift, T &uiBShift, T &uiAShift, T &uiRMask, T &uiGMask, T &uiBMask, T &uiAMask)
template<typename T>
Shrink (T S, T SourceBits, T DestBits)
template<typename T>
Expand (T S, T SourceBits, T DestBits)
template<typename T, typename U>
vlVoid Transform (TransformProc pTransform1, TransformProc pTransform2, T SR, T SG, T SB, T SA, T SRBits, T SGBits, T SBBits, T SABits, U &DR, U &DG, U &DB, U &DA, U DRBits, U DGBits, U DBBits, U DABits)
template<typename T, typename U>
vlBool ConvertTemplated (vlByte *lpSource, vlByte *lpDest, vlUInt uiWidth, vlUInt uiHeight, const SVTFImageConvertInfo &SourceInfo, const SVTFImageConvertInfo &DestInfo)

Variables

SphereMapFace SFace [6]
static SVTFImageFormatInfo VTFImageFormatInfo []
vlSingle sHDRLogAverageLuminance
static SVTFImageConvertInfo VTFImageConvertInfo []

Typedef Documentation

typedef struct tagSVTFImageConvertInfo SVTFImageConvertInfo

typedef vlVoid(* TransformProc)(vlUInt16 &R, vlUInt16 &G, vlUInt16 &B, vlUInt16 &A)


Function Documentation

vlSingle ClampFP16 ( vlSingle  sValue  ) 

template<typename T, typename U>
vlBool ConvertTemplated ( vlByte lpSource,
vlByte lpDest,
vlUInt  uiWidth,
vlUInt  uiHeight,
const SVTFImageConvertInfo SourceInfo,
const SVTFImageConvertInfo DestInfo 
) [inline]

template<typename T>
T Expand ( S,
SourceBits,
DestBits 
) [inline]

vlVoid FromBlueScreen ( vlUInt16 R,
vlUInt16 G,
vlUInt16 B,
vlUInt16 A 
)

vlVoid FromFP16 ( vlUInt16 R,
vlUInt16 G,
vlUInt16 B,
vlUInt16 A 
)

vlVoid FromLuminance ( vlUInt16 R,
vlUInt16 G,
vlUInt16 B,
vlUInt16 A 
)

template<typename T>
vlVoid GetShiftAndMask ( const SVTFImageConvertInfo Info,
T &  uiRShift,
T &  uiGShift,
T &  uiBShift,
T &  uiAShift,
T &  uiRMask,
T &  uiGMask,
T &  uiBMask,
T &  uiAMask 
) [inline]

template<typename T>
T Shrink ( S,
SourceBits,
DestBits 
) [inline]

vlVoid ToBlueScreen ( vlUInt16 R,
vlUInt16 G,
vlUInt16 B,
vlUInt16 A 
)

vlVoid ToFP16 ( vlUInt16 R,
vlUInt16 G,
vlUInt16 B,
vlUInt16 A 
)

vlVoid ToLuminance ( vlUInt16 R,
vlUInt16 G,
vlUInt16 B,
vlUInt16 A 
)

template<typename T, typename U>
vlVoid Transform ( TransformProc  pTransform1,
TransformProc  pTransform2,
SR,
SG,
SB,
SA,
SRBits,
SGBits,
SBBits,
SABits,
U &  DR,
U &  DG,
U &  DB,
U &  DA,
DRBits,
DGBits,
DBBits,
DABits 
) [inline]


Variable Documentation

SphereMapFace SFace[6]

Initial value:

{
        {0, {0, 0, -1}, {0, 1, 0}, {-1, 0, 0}, {-0.5, -0.5, 0.5}},      
        {0, {1, 0, 0}, {0, 1, 0}, {0, 0, -1}, {-0.5, -0.5, -0.5}},      
        {0, {0, 0, 1}, {0, 1, 0}, {1, 0, 0}, {0.5, -0.5, -0.5}},        
        {0, {-1, 0, 0}, {0, 1, 0}, {0, 0, 1}, {0.5, -0.5, 0.5}},        
        {0, {1, 0, 0}, {0, 0, 1}, {0, 1, 0}, {-0.5, 0.5, -0.5}},        
        {0,     {1, 0, 0}, {0, 0, -1}, {0, -1, 0}, {-0.5, -0.5, 0.5}}   
}

vlSingle sHDRLogAverageLuminance

SVTFImageConvertInfo VTFImageConvertInfo[] [static]

SVTFImageFormatInfo VTFImageFormatInfo[] [static]


Generated on Fri Dec 28 23:26:22 2007 for VTFLib 1.2.7 by  doxygen 1.5.4