openvideo::ConverterYV12 Class Reference
#include <ConverterYV12.h>
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
|
|
Definition at line 69 of file ConverterYV12.h. |
|
|
Definition at line 60 of file ConverterYV12.h. |
Constructor & Destructor Documentation
|
|
Definition at line 75 of file ConverterYV12.h. References init(). |
|
|
Definition at line 77 of file ConverterYV12.h. References deinit(). |
Member Function Documentation
|
|
Definition at line 87 of file ConverterYV12.h. References lutCap. Referenced by convertToRGB32(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 416 of file ConverterYV12.cxx. |
|
||||||||||||||||||||||||||||||||
|
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(). |
|
|
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(). |
|
|
Definition at line 90 of file ConverterYV12.h. References lutU_for_Blue. Referenced by convertToRGB32(). |
|
|
Definition at line 92 of file ConverterYV12.h. References lutU_for_Green. Referenced by convertToRGB32(). |
|
|
Definition at line 91 of file ConverterYV12.h. References lutV_for_Green. Referenced by convertToRGB32(). |
|
|
Definition at line 89 of file ConverterYV12.h. References lutV_for_Red. Referenced by convertToRGB32(). |
|
|
Definition at line 93 of file ConverterYV12.h. References lutY. Referenced by convertToRGB32(). |
|
|
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
|
|
Definition at line 95 of file ConverterYV12.h. |
|
|
Definition at line 95 of file ConverterYV12.h. |
|
|
Definition at line 98 of file ConverterYV12.h. Referenced by deinit(), getU_for_Blue(), and init(). |
|
|
Definition at line 98 of file ConverterYV12.h. Referenced by deinit(), getU_for_Green(), and init(). |
|
|
Definition at line 98 of file ConverterYV12.h. Referenced by deinit(), getV_for_Green(), and init(). |
|
|
Definition at line 98 of file ConverterYV12.h. Referenced by deinit(), getV_for_Red(), and init(). |
|
|
Definition at line 98 of file ConverterYV12.h. |
The documentation for this class was generated from the following files:
