Classes | Macros | Typedefs | Functions
color.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Myrgb16
 
struct  Myrgb24
 
struct  Myrgb32
 
struct  MyYUV422
 
struct  MyYUV444
 

Macros

#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)
 

Macro Definition Documentation

#define CLIP (   color)    (unsigned char)(((color)>0xFF)?0xff:(((color)<0)?0:(color)))

Definition at line 50 of file color.h.

#define PACKRGB16 (   r,
  g,
 
)    (__u16) ((((b) & 0xF8) << 8 ) | (((g) & 0xFC) << 3 ) | (((r) & 0xF8) >> 3 ))

Definition at line 74 of file color.h.

#define UfromRGB (   r,
  g,
 
)    CLIP(((128*(b)-85*(g)-43*(r))>>8 )+128)

Definition at line 71 of file color.h.

#define UNPACK16 (   pixel,
  r,
  g,
 
)    r=((pixel)&0xf800) >> 8; g=((pixel)&0x07e0) >> 3; b=(((pixel)&0x001f) << 3)

Definition at line 75 of file color.h.

#define VfromRGB (   r,
  g,
 
)    CLIP(((128*(r)-107*(g)-21*(b))>>8) +128)

Definition at line 72 of file color.h.

#define YfromRGB (   r,
  g,
 
)    CLIP((77*(r)+150*(g)+29*(b))>>8)

Definition at line 70 of file color.h.

Typedef Documentation

typedef struct Myrgb16 Myrgb16
typedef struct Myrgb24 Myrgb24
typedef struct Myrgb32 Myrgb32
typedef struct MyYUV422 MyYUV422
typedef struct MyYUV444 MyYUV444

Function Documentation

unsigned char B_FROMYU ( unsigned char  y,
unsigned char  u 
)

Definition at line 73 of file color.c.

void freeLut ( void  )

Definition at line 120 of file color.c.

unsigned char G_FROMYUV ( unsigned char  y,
unsigned char  u,
unsigned char  v 
)

Definition at line 68 of file color.c.

void initLut ( void  )

Definition at line 78 of file color.c.

unsigned char R_FROMYV ( unsigned char  y,
unsigned char  v 
)

Definition at line 63 of file color.c.

unsigned char RGB24_TO_Y ( unsigned char  r,
unsigned char  g,
unsigned char  b 
)

Definition at line 48 of file color.c.

unsigned char YB_TO_U ( unsigned char  b,
unsigned char  y 
)

Definition at line 58 of file color.c.

unsigned char YR_TO_V ( unsigned char  r,
unsigned char  y 
)

Definition at line 53 of file color.c.



tuw_uvc
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:39:24