|
Public Types |
enum | {
AXIS = 0x21,
AXIS2 = AXIS*AXIS,
AXIS3 = AXIS*AXIS*AXIS,
MAXCOLOURS = 0x100,
RED = 0,
GREEN = 1,
BLUE = 2
} |
Public Member Functions |
| PaletteOptimiser () |
void | Initialise () |
void | AddStats (cpcRGBQUAD pBitmap, cUINT32 uSize) |
void | GenPalette (cUINT32 uMaxColours=0x100) |
bool | GetPalette (cpLOGPALETTE pPalette, cUINT32 MaxColours) |
void | AddSystemColours (cBOOL bAddSysClrs) |
void | UseBrowserPalette (cBOOL bUseBrwsrPal) |
void | UseBitmapColours (cBOOL bUseBtmpClrs) |
void | SnapToPrimaries (cUINT32 uSnap) |
void | SnapToBrowserPalette (cUINT32 uSnap) |
void | AddLockedColour (cBYTE red, cBYTE green, cBYTE blue) |
void | RemoveLockedColours () |
void | SetFast (cBOOL bFast) |
Protected Types |
typedef const Stats | cStats |
typedef Stats * | pStats |
typedef const Stats * | pcStats |
typedef Stats *const | cpStats |
typedef const Stats *const | cpcStats |
typedef Stats ** | ppStats |
typedef const Stats ** | ppcStats |
typedef Stats **const | cppStats |
typedef const Clr | cClr |
typedef Clr * | pClr |
typedef const Clr * | pcClr |
typedef Clr *const | cpClr |
typedef const Clr *const | cpcClr |
typedef Clr ** | ppClr |
typedef const Clr ** | ppcClr |
typedef Clr **const | cppClr |
typedef const Box | cBox |
typedef Box * | pBox |
typedef const Box * | pcBox |
typedef Box *const | cpBox |
typedef const Box *const | cpcBox |
typedef Box ** | ppBox |
typedef const Box ** | ppcBox |
typedef Box **const | cppBox |
typedef const PalEntry | cPalEntry |
typedef PalEntry * | pPalEntry |
typedef const PalEntry * | pcPalEntry |
typedef PalEntry *const | cpPalEntry |
typedef const PalEntry *const | cpcPalEntry |
typedef PalEntry ** | ppPalEntry |
typedef const PalEntry ** | ppcPalEntry |
typedef PalEntry **const | cppPalEntry |
Protected Member Functions |
double | Snap (cpBox pCube, cDOUBLE halfW, cDOUBLE halfR, cDOUBLE halfG, cDOUBLE halfB) |
double | LCube (double Stats::*p, cUINT32 r, cUINT32 g, cUINT32 b) const |
double | Vol (cpcBox pCube, double Stats::*p) const |
double | Bottom (cpcBox pCube, cUINT32 dir, double Stats::*p) const |
double | Top (cpcBox pCube, cUINT32 dir, cUINT32 pos, double Stats::*p) const |
double | Var (cpcBox pCube) const |
void | Store (cUINT32 i, cpBox pCube) |
void | Moments3D () |
double | Maximize (cpBox pCube, cUINT32 dir, cUINT32 first, cUINT32 last, cpBox pCube1, cpBox pCube2, cDOUBLE wholeW, cDOUBLE wholeR, cDOUBLE wholeG, cDOUBLE wholeB) |
double | Maximize (cpBox pCube, cUINT32 dir, cUINT32 first, cUINT32 last, cpBox pCube1, cpBox pCube2, cpBox pCube3, cDOUBLE wholeW, cDOUBLE wholeR, cDOUBLE wholeG, cDOUBLE wholeB) |
bool | Cut (cpBox pSet1, cpBox pSet2, cpDOUBLE pMax) |
bool | Cut (cpBox pSet1, cpBox pSet2, cpBox pSet3) |
Static Protected Member Functions |
static INT32 __cdecl | SortFn (pcVOID elem1, pcVOID elem2) |
Protected Attributes |
bool | m_bFast |
bool | m_bMoments |
bool | m_bAddSystemColours |
bool | m_bUseBrowserPalette |
bool | m_bUseBitmapColours |
UINT32 | m_uSnapToPrimaries |
UINT32 | m_uSnapToPrimaries2 |
UINT32 | m_uSnapToBrowserPalette |
UINT32 | m_uSnapToBrowserPalette2 |
UINT32 | m_uTotalColours |
RGBQUAD | m_aColours [MAXCOLOURS+1] |
UINT32 | m_aCount [MAXCOLOURS+1] |
UINT32 | m_uLockedColours |
UINT32 | m_uAllLockedColours |
PALETTEENTRY | m_aLockedColours [MAXCOLOURS] |
UINT32 | m_uPaletteEntries |
PalEntry | m_aPalette [3 *MAXCOLOURS] |
Stats | m_aStats [AXIS3] |
Static Protected Attributes |
static const BYTE | aSnap [0x132] |
static const UINT32 | aBDist [0x100] |
static const UINT32 | aPDist [0x100] |
static const UINT32 | aSqrs [0x100] |
Classes |
struct | Box |
struct | Clr |
struct | PalEntry |
struct | Stats |