JeVois  1.3
JeVois Smart Embedded Machine Vision Toolkit
Share this page:
ColorConversion.c File Reference
Include dependency graph for ColorConversion.c:

Go to the source code of this file.

Macros

#define CLAMP(value)   if (value < 0) value = 0; else if (value > 255) value = 255;
 

Functions

void convertYUYVtoRGB24 (unsigned int w, unsigned int h, unsigned char const *srcptr, unsigned char *dstptr)
 Convert from YUYV to RGB, mostly intended for internal use. Use RawImage functions instead in most cases. More...
 
void convertYUYVtoRGBYLinternal (int R, int G, int B, int *dstrg, int *dstby, int *dstlum, int thresh, int lshift, int lumlshift)
 
void convertYUYVtoRGBYL (unsigned int w, unsigned int h, unsigned char const *srcptr, int *dstrg, int *dstby, int *dstlum, int thresh, int inputbits)
 Convert from YUYV to RG, BY, and luminance for use by Saliency module in jevoisbase. For internal use. More...
 

Macro Definition Documentation

#define CLAMP (   value)    if (value < 0) value = 0; else if (value > 255) value = 255;

Definition at line 20 of file ColorConversion.c.

Referenced by convertYUYVtoRGB24(), and convertYUYVtoRGBYLinternal().

Function Documentation

void convertYUYVtoRGBYLinternal ( int  R,
int  G,
int  B,
int *  dstrg,
int *  dstby,
int *  dstlum,
int  thresh,
int  lshift,
int  lumlshift 
)
inline

Definition at line 57 of file ColorConversion.c.

References CLAMP.

Referenced by convertYUYVtoRGBYL().