COLORBALANCE Class Reference

#include <mi32/colorbal.h>

List of all members.

Public Member Functions

 COLORBALANCE (const CBPARMS &p)
 COLORBALANCE ()
 ~COLORBALANCE ()
bool IsIdentity () const
void SetParms (const CBPARMS &)
void TransBuffers (int *rbuf, int *gbuf, int *bbuf, int count) const
void TransBuffers (UINT8 *rbuf, UINT8 *gbuf, UINT8 *bbuf, int count) const
void TransCOLORs (COLOR *buf, int count) const
void TransRGB (UINT8 *buf, int count, int BytesPerPixel=3) const

Constructor & Destructor Documentation

COLORBALANCE::COLORBALANCE (  )  [inline]

Default constructor. Do nothing.

COLORBALANCE::COLORBALANCE ( const CBPARMS p  )  [inline]

Constructor with a CBPARMS.

COLORBALANCE::~COLORBALANCE (  )  [inline]

Simple destructor.


Member Function Documentation

bool COLORBALANCE::IsIdentity ( void   )  const [inline]

Determine if is "identity".

void COLORBALANCE::SetParms ( const CBPARMS  ) 

Set parameters.

void COLORBALANCE::TransBuffers ( int *  rbuf,
int *  gbuf,
int *  bbuf,
int  count 
) const

Do color balancing on RGB buffers (3 buffers).

Overloaded version of this function which takes (int*) buffers but still assumes values in range of 0-255, less efficient than above.

Parameters:
rbuf Buffer of red values
gbuf Buffer of green values
bbuf Buffer of blue values
count Number of cells to convert
void COLORBALANCE::TransBuffers ( UINT8 rbuf,
UINT8 gbuf,
UINT8 bbuf,
int  count 
) const

Do color balancing on RGB buffers (3 buffers).

Parameters:
rbuf Buffer of red values
gbuf Buffer of green values
bbuf Buffer of blue values
count Number of cells to convert
void COLORBALANCE::TransCOLORs ( COLOR buf,
int  count 
) const

Translate an array or COLOR structures.

void COLORBALANCE::TransRGB ( UINT8 buf,
int  count,
int  BytesPerPixel = 3 
) const

Translate one buffer with RGBRGBRGB... or RGBxRGBxRGBx...


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

Generated on Sun Oct 7 21:33:16 2012 for TNTsdk 2012 by  doxygen 1.6.1