YUV Class Reference

#include <plugincolors.h>


Public Member Functions

 YUV ()
 ~YUV ()
void rgb_to_yuv_8 (int &y, int &u, int &v)
void rgb_to_yuv_8 (int r, int g, int b, int &y, int &u, int &v)
void rgb_to_yuv_8 (int r, int g, int b, unsigned char &y, unsigned char &u, unsigned char &v)
void rgb_to_yuv_16 (int r, int g, int b, int &y, int &u, int &v)
void rgb_to_yuv_8 (float r, float g, float b, float &y, float &u, float &v)
void rgb_to_yuv_16 (float r, float g, float b, float &y, float &u, float &v)
void yuv_to_rgb_8 (int &r, int &g, int &b)
void yuv_to_rgb_8 (int &r, int &g, int &b, int y, int u, int v)
void rgb_to_yuv_16 (int r, int g, int b, uint16_t &y, uint16_t &u, uint16_t &v)
void yuv_to_rgb_16 (int &r, int &g, int &b, int y, int u, int v)
void yuv_to_rgb_8 (float &r, float &g, float &b, float y, float u, float v)
void yuv_to_rgb_16 (float &r, float &g, float &b, float y, float u, float v)

Static Public Member Functions

static void rgb_to_yuv_f (float r, float g, float b, float &y, float &u, float &v)
static void rgb_to_yuv_f (int r, int g, int b, int &y, int &u, int &v)
static void yuv_to_rgb_f (float &r, float &g, float &b, float y, float u, float v)
static void yuv_to_rgb_f (int &r, int &g, int &b, int y, int u, int v)

Private Attributes

int rtoy_tab_8 [0x100]
int gtoy_tab_8 [0x100]
int btoy_tab_8 [0x100]
int rtou_tab_8 [0x100]
int gtou_tab_8 [0x100]
int btou_tab_8 [0x100]
int rtov_tab_8 [0x100]
int gtov_tab_8 [0x100]
int btov_tab_8 [0x100]
int vtor_tab_8 [0x100]
int vtog_tab_8 [0x100]
int utog_tab_8 [0x100]
int utob_tab_8 [0x100]
int * vtor_8
int * vtog_8
int * utog_8
int * utob_8
int rtoy_tab_16 [0x10000]
int gtoy_tab_16 [0x10000]
int btoy_tab_16 [0x10000]
int rtou_tab_16 [0x10000]
int gtou_tab_16 [0x10000]
int btou_tab_16 [0x10000]
int rtov_tab_16 [0x10000]
int gtov_tab_16 [0x10000]
int btov_tab_16 [0x10000]
int vtor_tab_16 [0x10000]
int vtog_tab_16 [0x10000]
int utog_tab_16 [0x10000]
int utob_tab_16 [0x10000]
int * vtor_16
int * vtog_16
int * utog_16
int * utob_16


Detailed Description

Definition at line 32 of file plugincolors.h.


Constructor & Destructor Documentation

YUV::YUV (  ) 

YUV::~YUV (  ) 

Definition at line 246 of file plugincolors.C.


Member Function Documentation

void YUV::rgb_to_yuv_8 ( int &  y,
int &  u,
int &  v 
) [inline]

void YUV::rgb_to_yuv_8 ( int  r,
int  g,
int  b,
int &  y,
int &  u,
int &  v 
) [inline]

void YUV::rgb_to_yuv_8 ( int  r,
int  g,
int  b,
unsigned char &  y,
unsigned char &  u,
unsigned char &  v 
) [inline]

static void YUV::rgb_to_yuv_f ( float  r,
float  g,
float  b,
float &  y,
float &  u,
float &  v 
) [inline, static]

void YUV::rgb_to_yuv_16 ( int  r,
int  g,
int  b,
int &  y,
int &  u,
int &  v 
) [inline]

void YUV::rgb_to_yuv_8 ( float  r,
float  g,
float  b,
float &  y,
float &  u,
float &  v 
) [inline]

Definition at line 77 of file plugincolors.h.

void YUV::rgb_to_yuv_16 ( float  r,
float  g,
float  b,
float &  y,
float &  u,
float &  v 
) [inline]

Definition at line 81 of file plugincolors.h.

static void YUV::rgb_to_yuv_f ( int  r,
int  g,
int  b,
int &  y,
int &  u,
int &  v 
) [inline, static]

Definition at line 85 of file plugincolors.h.

void YUV::yuv_to_rgb_8 ( int &  r,
int &  g,
int &  b 
) [inline]

void YUV::yuv_to_rgb_8 ( int &  r,
int &  g,
int &  b,
int  y,
int  u,
int  v 
) [inline]

Definition at line 103 of file plugincolors.h.

References CLAMP, utob_tab_8, utog_tab_8, vtog_tab_8, and vtor_tab_8.

static void YUV::yuv_to_rgb_f ( float &  r,
float &  g,
float &  b,
float  y,
float  u,
float  v 
) [inline, static]

Definition at line 115 of file plugincolors.h.

References U_TO_B, U_TO_G, V_TO_G, and V_TO_R.

Referenced by ChromaKeyUnit::process_chromakey(), and GammaUnit::process_package().

void YUV::rgb_to_yuv_16 ( int  r,
int  g,
int  b,
uint16_t &  y,
uint16_t &  u,
uint16_t &  v 
) [inline]

void YUV::yuv_to_rgb_16 ( int &  r,
int &  g,
int &  b,
int  y,
int  u,
int  v 
) [inline]

void YUV::yuv_to_rgb_8 ( float &  r,
float &  g,
float &  b,
float  y,
float  u,
float  v 
) [inline]

Definition at line 142 of file plugincolors.h.

void YUV::yuv_to_rgb_16 ( float &  r,
float &  g,
float &  b,
float  y,
float  u,
float  v 
) [inline]

Definition at line 147 of file plugincolors.h.

static void YUV::yuv_to_rgb_f ( int &  r,
int &  g,
int &  b,
int  y,
int  u,
int  v 
) [inline, static]

Definition at line 151 of file plugincolors.h.


Field Documentation

int YUV::rtoy_tab_8[0x100] [private]

Definition at line 153 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::gtoy_tab_8[0x100] [private]

Definition at line 153 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::btoy_tab_8[0x100] [private]

Definition at line 153 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::rtou_tab_8[0x100] [private]

Definition at line 157 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::gtou_tab_8[0x100] [private]

Definition at line 157 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::btou_tab_8[0x100] [private]

Definition at line 157 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::rtov_tab_8[0x100] [private]

Definition at line 158 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::gtov_tab_8[0x100] [private]

Definition at line 158 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::btov_tab_8[0x100] [private]

Definition at line 158 of file plugincolors.h.

Referenced by rgb_to_yuv_8(), and YUV().

int YUV::vtor_tab_8[0x100] [private]

Definition at line 160 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_8().

int YUV::vtog_tab_8[0x100] [private]

Definition at line 160 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_8().

int YUV::utog_tab_8[0x100] [private]

Definition at line 161 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_8().

int YUV::utob_tab_8[0x100] [private]

Definition at line 161 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_8().

int* YUV::vtor_8 [private]

Definition at line 162 of file plugincolors.h.

Referenced by YUV().

int * YUV::vtog_8 [private]

Definition at line 162 of file plugincolors.h.

Referenced by YUV().

int * YUV::utog_8 [private]

Definition at line 162 of file plugincolors.h.

Referenced by YUV().

int * YUV::utob_8 [private]

Definition at line 162 of file plugincolors.h.

Referenced by YUV().

int YUV::rtoy_tab_16[0x10000] [private]

Definition at line 164 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::gtoy_tab_16[0x10000] [private]

Definition at line 164 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::btoy_tab_16[0x10000] [private]

Definition at line 164 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::rtou_tab_16[0x10000] [private]

Definition at line 165 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::gtou_tab_16[0x10000] [private]

Definition at line 165 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::btou_tab_16[0x10000] [private]

Definition at line 165 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::rtov_tab_16[0x10000] [private]

Definition at line 166 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::gtov_tab_16[0x10000] [private]

Definition at line 166 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::btov_tab_16[0x10000] [private]

Definition at line 166 of file plugincolors.h.

Referenced by rgb_to_yuv_16(), and YUV().

int YUV::vtor_tab_16[0x10000] [private]

Definition at line 168 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_16().

int YUV::vtog_tab_16[0x10000] [private]

Definition at line 168 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_16().

int YUV::utog_tab_16[0x10000] [private]

Definition at line 169 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_16().

int YUV::utob_tab_16[0x10000] [private]

Definition at line 169 of file plugincolors.h.

Referenced by YUV(), and yuv_to_rgb_16().

int* YUV::vtor_16 [private]

Definition at line 170 of file plugincolors.h.

Referenced by YUV().

int * YUV::vtog_16 [private]

Definition at line 170 of file plugincolors.h.

Referenced by YUV().

int * YUV::utog_16 [private]

Definition at line 170 of file plugincolors.h.

Referenced by YUV().

int * YUV::utob_16 [private]

Definition at line 170 of file plugincolors.h.

Referenced by YUV().


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

Generated on Mon Apr 28 14:50:59 2008 for Cinelerra by  doxygen 1.5.5