OpenVideo Documentation

   Main Page       Modules       Class Hierarchy       Alphabetical List       Compound List       File List       Compound Members       Related Pages   

openvideo::ConverterYV12 Class Reference

#include <ConverterYV12.h>

List of all members.

Public Types

enum  FORMAT {
  FORMAT_INVALID = 0, FORMAT_RGB565 = 1, FORMAT_RGB555 = 2, FORMAT_RGB24 = 3,
  FORMAT_RGB32 = 4, FORMAT_YV12 = 5
}
enum  { LUTCAP_MIN = -153, LUTCAP_MAX = 535, CHANNEL_RANGE = 256 }

Public Member Functions

 ConverterYV12 ()
 ~ConverterYV12 ()
void convertToRGB32 (const unsigned char *nSrcYUV, int nWidth, int nHeight, unsigned int *nDstRGB32, bool nSwizzle34, int nCropX=0, int nCropY=0)
void convertToLum (const unsigned char *nSrcYUV, int nWidth, int nHeight, unsigned char *nDstLum, bool nSwizzle34, int nCropX=0, int nCropY=0)

Protected Member Functions

void init ()
void deinit ()
int cap (int nV)
int getV_for_Red (int nV)
int getU_for_Blue (int nU)
int getV_for_Green (int nV)
int getU_for_Green (int nU)
int getY (int nY)

Protected Attributes

unsigned char * lutCap0
unsigned char * lutCap
short * lutV_for_Red
short * lutU_for_Blue
short * lutV_for_Green
short * lutU_for_Green
short * lutY


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
LUTCAP_MIN 
LUTCAP_MAX 
CHANNEL_RANGE 

Definition at line 69 of file ConverterYV12.h.

enum openvideo::ConverterYV12::FORMAT
 

Enumeration values:
FORMAT_INVALID 
FORMAT_RGB565 
FORMAT_RGB555 
FORMAT_RGB24 
FORMAT_RGB32 
FORMAT_YV12 

Definition at line 60 of file ConverterYV12.h.


Constructor & Destructor Documentation

openvideo::ConverterYV12::ConverterYV12  )  [inline]
 

Definition at line 75 of file ConverterYV12.h.

References init().

openvideo::ConverterYV12::~ConverterYV12  )  [inline]
 

Definition at line 77 of file ConverterYV12.h.

References deinit().


Member Function Documentation

int openvideo::ConverterYV12::cap int  nV  )  [inline, protected]
 

Definition at line 87 of file ConverterYV12.h.

References lutCap.

Referenced by convertToRGB32().

void openvideo::ConverterYV12::convertToLum const unsigned char *  nSrcYUV,
int  nWidth,
int  nHeight,
unsigned char *  nDstLum,
bool  nSwizzle34,
int  nCropX = 0,
int  nCropY = 0
 

Definition at line 416 of file ConverterYV12.cxx.

void openvideo::ConverterYV12::convertToRGB32 const unsigned char *  nSrcYUV,
int  nWidth,
int  nHeight,
unsigned int *  nDstRGB32,
bool  nSwizzle34,
int  nCropX = 0,
int  nCropY = 0
 

Definition at line 112 of file ConverterYV12.cxx.

References cap(), getU_for_Blue(), getU_for_Green(), getV_for_Green(), getV_for_Red(), and getY().

Referenced by openvideo::V4L2Src::processImage().

void openvideo::ConverterYV12::deinit  )  [protected]
 

Definition at line 100 of file ConverterYV12.cxx.

References lutCap0, lutU_for_Blue, lutU_for_Green, lutV_for_Green, lutV_for_Red, and lutY.

Referenced by ~ConverterYV12().

int openvideo::ConverterYV12::getU_for_Blue int  nU  )  [inline, protected]
 

Definition at line 90 of file ConverterYV12.h.

References lutU_for_Blue.

Referenced by convertToRGB32().

int openvideo::ConverterYV12::getU_for_Green int  nU  )  [inline, protected]
 

Definition at line 92 of file ConverterYV12.h.

References lutU_for_Green.

Referenced by convertToRGB32().

int openvideo::ConverterYV12::getV_for_Green int  nV  )  [inline, protected]
 

Definition at line 91 of file ConverterYV12.h.

References lutV_for_Green.

Referenced by convertToRGB32().

int openvideo::ConverterYV12::getV_for_Red int  nV  )  [inline, protected]
 

Definition at line 89 of file ConverterYV12.h.

References lutV_for_Red.

Referenced by convertToRGB32().

int openvideo::ConverterYV12::getY int  nY  )  [inline, protected]
 

Definition at line 93 of file ConverterYV12.h.

References lutY.

Referenced by convertToRGB32().

void openvideo::ConverterYV12::init  )  [protected]
 

Definition at line 62 of file ConverterYV12.cxx.

References CHANNEL_RANGE, lutCap, lutCap0, LUTCAP_MAX, LUTCAP_MIN, lutU_for_Blue, lutU_for_Green, lutV_for_Green, lutV_for_Red, and lutY.

Referenced by ConverterYV12().


Member Data Documentation

unsigned char * openvideo::ConverterYV12::lutCap [protected]
 

Definition at line 95 of file ConverterYV12.h.

Referenced by cap(), and init().

unsigned char* openvideo::ConverterYV12::lutCap0 [protected]
 

Definition at line 95 of file ConverterYV12.h.

Referenced by deinit(), and init().

short * openvideo::ConverterYV12::lutU_for_Blue [protected]
 

Definition at line 98 of file ConverterYV12.h.

Referenced by deinit(), getU_for_Blue(), and init().

short * openvideo::ConverterYV12::lutU_for_Green [protected]
 

Definition at line 98 of file ConverterYV12.h.

Referenced by deinit(), getU_for_Green(), and init().

short * openvideo::ConverterYV12::lutV_for_Green [protected]
 

Definition at line 98 of file ConverterYV12.h.

Referenced by deinit(), getV_for_Green(), and init().

short* openvideo::ConverterYV12::lutV_for_Red [protected]
 

Definition at line 98 of file ConverterYV12.h.

Referenced by deinit(), getV_for_Red(), and init().

short * openvideo::ConverterYV12::lutY [protected]
 

Definition at line 98 of file ConverterYV12.h.

Referenced by deinit(), getY(), and init().


The documentation for this class was generated from the following files:
 This page was generated at Wed May 31 13:04:18 2006 for OpenVideo by Doxygen.
 If you have any comments, please send a message to schmalstieg@icg.tu-graz.ac.at.
www.studierstube.org