JeVois  1.20
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

◆ CLAMP

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

Definition at line 20 of file ColorConversion.c.

Function Documentation

◆ convertYUYVtoRGBYLinternal()

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, G, and L.

Referenced by convertYUYVtoRGBYL().