Macros | Functions
conversions.c File Reference
#include <string.h>
#include "cmvision/conversions.h"
Include dependency graph for conversions.c:

Go to the source code of this file.

Macros

#define CLIP(in, out)
 
#define RGB2YUV(r, g, b, y, u, v)
 
#define UYVY
 
#define YUV2RGB(y, u, v, r, g, b)
 

Functions

void BayerDownsample (unsigned char *src, unsigned char *dest, int sx, int sy, bayer_pattern_t type)
 
void BayerEdgeSense (unsigned char *src, unsigned char *dest, int sx, int sy, bayer_pattern_t type)
 
void BayerNearestNeighbor (unsigned char *src, unsigned char *dest, int sx, int sy, bayer_pattern_t type)
 
void rgb2uyvy (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void rgb482rgb (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void rgb482uyvy (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void StereoDecode (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void swab ()
 
void uyv2rgb (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void uyv2uyvy (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void uyvy2rgb (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void uyvy2yuyv (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void uyyvyy2rgb (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void uyyvyy2uyvy (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void y162rgb (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels, int bits)
 
void y162uyvy (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels, int bits)
 
void y162y (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels, int bits)
 
void y2rgb (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void y2uyvy (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 
void yuyv2uyvy (unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
 

Macro Definition Documentation

◆ CLIP

#define CLIP (   in,
  out 
)
Value:
{\
in = in < 0 ? 0 : in;\
in = in > 255 ? 255 : in;\
out=in;\
}

Definition at line 59 of file conversions.c.

◆ RGB2YUV

#define RGB2YUV (   r,
  g,
  b,
  y,
  u,
 
)
Value:
y = (306*r + 601*g + 117*b) >> 10;\
u = ((-172*r - 340*g + 512*b) >> 10) + 128;\
v = ((512*r - 429*g - 83*b) >> 10) + 128;\
y = y < 0 ? 0 : y;\
u = u < 0 ? 0 : u;\
v = v < 0 ? 0 : v;\
y = y > 255 ? 255 : y;\
u = u > 255 ? 255 : u;\
v = v > 255 ? 255 : v

Definition at line 48 of file conversions.c.

◆ UYVY

#define UYVY

Definition at line 32 of file conversions.c.

◆ YUV2RGB

#define YUV2RGB (   y,
  u,
  v,
  r,
  g,
 
)
Value:
r = y + ((v*1436) >>10);\
g = y - ((u*352 + v*731) >> 10);\
b = y + ((u*1814) >> 10);\
r = r < 0 ? 0 : r;\
g = g < 0 ? 0 : g;\
b = b < 0 ? 0 : b;\
r = r > 255 ? 255 : r;\
g = g > 255 ? 255 : g;\
b = b > 255 ? 255 : b

Definition at line 36 of file conversions.c.

Function Documentation

◆ BayerDownsample()

void BayerDownsample ( unsigned char *  src,
unsigned char *  dest,
int  sx,
int  sy,
bayer_pattern_t  type 
)

Definition at line 765 of file conversions.c.

◆ BayerEdgeSense()

void BayerEdgeSense ( unsigned char *  src,
unsigned char *  dest,
int  sx,
int  sy,
bayer_pattern_t  type 
)

Definition at line 553 of file conversions.c.

◆ BayerNearestNeighbor()

void BayerNearestNeighbor ( unsigned char *  src,
unsigned char *  dest,
int  sx,
int  sy,
bayer_pattern_t  type 
)

Definition at line 434 of file conversions.c.

◆ rgb2uyvy()

void rgb2uyvy ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 224 of file conversions.c.

◆ rgb482rgb()

void rgb482rgb ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 299 of file conversions.c.

◆ rgb482uyvy()

void rgb482uyvy ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 255 of file conversions.c.

◆ StereoDecode()

void StereoDecode ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 829 of file conversions.c.

◆ swab()

void swab ( )

◆ uyv2rgb()

void uyv2rgb ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 316 of file conversions.c.

◆ uyv2uyvy()

void uyv2uyvy ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 130 of file conversions.c.

◆ uyvy2rgb()

void uyvy2rgb ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 335 of file conversions.c.

◆ uyvy2yuyv()

void uyvy2yuyv ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 83 of file conversions.c.

◆ uyyvyy2rgb()

void uyyvyy2rgb ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 360 of file conversions.c.

◆ uyyvyy2uyvy()

void uyyvyy2uyvy ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 92 of file conversions.c.

◆ y162rgb()

void y162rgb ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels,
int  bits 
)

Definition at line 409 of file conversions.c.

◆ y162uyvy()

void y162uyvy ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels,
int  bits 
)

Definition at line 184 of file conversions.c.

◆ y162y()

void y162y ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels,
int  bits 
)

Definition at line 211 of file conversions.c.

◆ y2rgb()

void y2rgb ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 394 of file conversions.c.

◆ y2uyvy()

void y2uyvy ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 160 of file conversions.c.

◆ yuyv2uyvy()

void yuyv2uyvy ( unsigned char *  src,
unsigned char *  dest,
unsigned long long int  NumPixels 
)

Definition at line 73 of file conversions.c.



cmvision
Author(s): Nate Koenig, Nate Koenig
autogenerated on Wed Mar 2 2022 00:03:25