Defines | Functions | Variables
color.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "luvcview/color.h"
Include dependency graph for color.c:

Go to the source code of this file.

Defines

#define Bcoef   114
#define CoefBu   1772
#define CoefGu   714
#define CoefGv   344
#define CoefRv   1402
#define Gcoef   587
#define Rcoef   299
#define Ubcoef   560
#define Vrcoef   711

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)

Variables

static int * LutBu = NULL
static int * LutGu = NULL
static int * LutGv = NULL
static int * LutRv = NULL
static int * LutUb = NULL
static int * LutUbY = NULL
static int * LutVr = NULL
static int * LutVrY = NULL
static int * LutYb = NULL
static int * LutYg = NULL
static int * LutYr = NULL

Define Documentation

#define Bcoef   114
#define CoefBu   1772
#define CoefGu   714
#define CoefGv   344
#define CoefRv   1402
#define Gcoef   587
#define Rcoef   299
#define Ubcoef   560
#define Vrcoef   711

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.


Variable Documentation

int* LutBu = NULL [static]

Definition at line 35 of file color.c.

int* LutGu = NULL [static]

Definition at line 33 of file color.c.

int* LutGv = NULL [static]

Definition at line 34 of file color.c.

int* LutRv = NULL [static]

Definition at line 32 of file color.c.

int* LutUb = NULL [static]

Definition at line 30 of file color.c.

int* LutUbY = NULL [static]

Definition at line 31 of file color.c.

int* LutVr = NULL [static]

Definition at line 28 of file color.c.

int* LutVrY = NULL [static]

Definition at line 29 of file color.c.

int* LutYb = NULL [static]

Definition at line 27 of file color.c.

int* LutYg = NULL [static]

Definition at line 26 of file color.c.

int* LutYr = NULL [static]

Definition at line 25 of file color.c.



v4r_uvc
Author(s):
autogenerated on Wed Aug 26 2015 16:41:35