Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CBMagInfo Class Reference

CBMagInfo Class Reference

#include <CBMagInfo.h>

List of all members.


Detailed Description

Definition at line 166 of file CBMagInfo.h.


Public Types

enum  SWAPTYPE {
  SWAP_NONE,
  SWAP_GREEN_BLUE,
  SWAP_RED_BLUE,
  SWAP_RED_GREEN,
  SWAP_LAST_TYPE = SWAP_RED_GREEN
}
enum  MERGETYPE {
  MERGE_NONE,
  MERGE_Red,
  MERGE_Blue,
  MERGE_ALL,
  MERGE_Green,
  MERGE_LAST_TYPE = MERGE_Green
}

Public Member Functions

 CBMagInfo ()
 CBMagInfo (const CBMAGINFOSTRUCT &copyStruct)
 CBMagInfo (const CBMagInfo &copyInfo)
virtual ~CBMagInfo ()
CBMagInfooperator= (const CBMAGINFOSTRUCT &copyStruct)
CBMagInfooperator= (const CBMagInfo &copyInfo)
CBMAGRESULT LoadFromFile (const char *filename)
CBMAGRESULT LoadFromHandle (FILE *fp)
CBMAGRESULT SaveToFile (const char *filename)
CBMAGRESULT SaveToHandle (FILE *fp)
void Reset ()
void ProcessImage (unsigned char *rgbBuffer, int imgWidth, int imgHeight, int xOff, int yOff, int procWidth, int procHeight)
CBMAGRESULT SetName (const char *name)
CBMAGRESULT SetFeedback (bool allow)
CBMAGRESULT SetRefresh (int refresh)
CBMAGRESULT SetOnTop (bool onTop)
CBMAGRESULT SetMagLevel (float magLvl)
CBMAGRESULT SetFilterMouse (float coefficient)
CBMAGRESULT SetNegative (bool negative)
CBMAGRESULT SetGamma (float gamma)
CBMAGRESULT SetBrightRed (float brightRed)
CBMAGRESULT SetBrightGreen (float brightGreen)
CBMAGRESULT SetBrightBlue (float brightBlue)
CBMAGRESULT SetHue (float hue)
CBMAGRESULT SetSeverity (float severity)
CBMAGRESULT SetGreyRed (float greyRed)
CBMAGRESULT SetGreyGreen (float greyGreen)
CBMAGRESULT SetGreyBlue (float greyBlue)
CBMAGRESULT SetGreyYellow (float greyYellow)
CBMAGRESULT SetGreyCyan (float greyCyan)
CBMAGRESULT SetGreyMagenta (float greyMagenta)
CBMAGRESULT SetCompress (float compress)
CBMAGRESULT SetSwapType (SWAPTYPE swapType)
CBMAGRESULT SetMergeType (MERGETYPE mergeType)
CBMAGRESULT GetName (char *nameBuffer, int &bufLen) const
int GetRefresh () const
bool GetFeedback () const
bool GetOnTop () const
bool GetNegative () const
float GetMagLevel () const
float GetFilterMouse () const
float GetGamma () const
float GetBrightRed () const
float GetBrightGreen () const
float GetBrightBlue () const
float GetHue () const
float GetSeverity () const
float GetGreyRed () const
float GetGreyGreen () const
float GetGreyBlue () const
float GetGreyYellow () const
float GetGreyCyan () const
float GetGreyMagenta () const
float GetCompress () const
SWAPTYPE GetSwapType () const
MERGETYPE GetMergeType () const
void BuildLookupTables ()
void BuildGamma (bool buildRed, bool buildGreen, bool buildBlue)
void BuildGreys (bool buildRed, bool buildYellow, bool buildGreen, bool buildCyan, bool buildBlue, bool buildMag)
void BuildHue ()
void BuildSeverity ()

Static Public Member Functions

static CBMAGRESULT SetupDefaults (CBMAGINFOSTRUCT *magInfo)
static void FlipEndian (int &value)
static void FlipEndian (float &value)
static void FlipEndian (CBMAGINFOSTRUCT &infoStruct)
static _inline void RGBtoHSI (unsigned char &rh, unsigned char &gs, unsigned char &bi)
static _inline void HSItoRGB (unsigned char &rh, unsigned char &gs, unsigned char &bi)
static CBMAGRESULT CorrectEndian (CBMAGINFOSTRUCT &infoStruct)

Protected Member Functions

void InitLUTs ()
void FreeLUTs ()

Protected Attributes

CBMAGINFOSTRUCT fInfo
bool fFileDirty
bool fStructDirty
unsigned char * fRedLUT
unsigned char * fGreenLUT
unsigned char * fBlueLUT
unsigned char * fIntLUTRed
unsigned char * fIntLUTGreen
unsigned char * fIntLUTBlue
unsigned char * fIntLUTYellow
unsigned char * fIntLUTCyan
unsigned char * fIntLUTMagenta
unsigned char * fSatLUTRed
unsigned char * fSatLUTGreen
unsigned char * fSatLUTBlue
unsigned char * fSatLUTYellow
unsigned char * fSatLUTCyan
unsigned char * fSatLUTMagenta
unsigned char * fHueLUT
unsigned char * fMergeGreenLUT
unsigned char * fMergeRedLUT
unsigned char * fMergeBlueLUT
unsigned char * fSevLUT
unsigned char * fGreyRedLUT
unsigned char * fGreyGreenLUT
unsigned char * fGreyBlueLUT

The documentation for this class was generated from the following files:
Generated on Mon Feb 11 04:11:29 2008 for Game Accessibility Suite by doxygen 1.5.4