Go to the source code of this file.
Classes |
struct | Myrgb16 |
struct | Myrgb24 |
struct | Myrgb32 |
struct | MyYUV422 |
struct | MyYUV444 |
Defines |
#define | CLIP(color) (unsigned char)(((color)>0xFF)?0xff:(((color)<0)?0:(color))) |
#define | PACKRGB16(r, g, b) (__u16) ((((b) & 0xF8) << 8 ) | (((g) & 0xFC) << 3 ) | (((r) & 0xF8) >> 3 )) |
#define | UfromRGB(r, g, b) CLIP(((128*(b)-85*(g)-43*(r))>>8 )+128) |
#define | UNPACK16(pixel, r, g, b) r=((pixel)&0xf800) >> 8; g=((pixel)&0x07e0) >> 3; b=(((pixel)&0x001f) << 3) |
#define | VfromRGB(r, g, b) CLIP(((128*(r)-107*(g)-21*(b))>>8) +128) |
#define | YfromRGB(r, g, b) CLIP((77*(r)+150*(g)+29*(b))>>8) |
Typedefs |
typedef struct Myrgb16 | Myrgb16 |
typedef struct Myrgb24 | Myrgb24 |
typedef struct Myrgb32 | Myrgb32 |
typedef struct MyYUV422 | MyYUV422 |
typedef struct MyYUV444 | MyYUV444 |
Functions |
unsigned char | B_FROMYU (unsigned char y, unsigned char u) |
void | freeLut (void) |
unsigned char | G_FROMYUV (unsigned char y, unsigned char u, unsigned char v) |
void | initLut (void) |
unsigned char | R_FROMYV (unsigned char y, unsigned char v) |
unsigned char | RGB24_TO_Y (unsigned char r, unsigned char g, unsigned char b) |
unsigned char | YB_TO_U (unsigned char b, unsigned char y) |
unsigned char | YR_TO_V (unsigned char r, unsigned char y) |
Define Documentation
#define CLIP |
( |
|
color | ) |
(unsigned char)(((color)>0xFF)?0xff:(((color)<0)?0:(color))) |
#define PACKRGB16 |
( |
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| (__u16) ((((b) & 0xF8) << 8 ) | (((g) & 0xFC) << 3 ) | (((r) & 0xF8) >> 3 )) |
#define UfromRGB |
( |
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| CLIP(((128*(b)-85*(g)-43*(r))>>8 )+128) |
#define UNPACK16 |
( |
|
pixel, |
|
|
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| r=((pixel)&0xf800) >> 8; g=((pixel)&0x07e0) >> 3; b=(((pixel)&0x001f) << 3) |
#define VfromRGB |
( |
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| CLIP(((128*(r)-107*(g)-21*(b))>>8) +128) |
#define YfromRGB |
( |
|
r, |
|
|
|
g, |
|
|
|
b |
|
) |
| CLIP((77*(r)+150*(g)+29*(b))>>8) |
Typedef Documentation
Function Documentation
unsigned char B_FROMYU |
( |
unsigned char |
y, |
|
|
unsigned char |
u |
|
) |
| |
unsigned char G_FROMYUV |
( |
unsigned char |
y, |
|
|
unsigned char |
u, |
|
|
unsigned char |
v |
|
) |
| |
unsigned char R_FROMYV |
( |
unsigned char |
y, |
|
|
unsigned char |
v |
|
) |
| |
unsigned char RGB24_TO_Y |
( |
unsigned char |
r, |
|
|
unsigned char |
g, |
|
|
unsigned char |
b |
|
) |
| |
unsigned char YB_TO_U |
( |
unsigned char |
b, |
|
|
unsigned char |
y |
|
) |
| |
unsigned char YR_TO_V |
( |
unsigned char |
r, |
|
|
unsigned char |
y |
|
) |
| |