#include "conversions.h"
Go to the source code of this file.
Defines | |
#define | CLIP(in, out) |
#define | RGB2YUV(r, g, b, y, u, v) |
#define | YUV2RGB(y, u, v, r, g, b) |
#define | YUYV |
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 | 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) |
#define CLIP | ( | in, | |
out | |||
) |
{\ in = in < 0 ? 0 : in;\ in = in > 255 ? 255 : in;\ out=in;\ }
Definition at line 64 of file lib/SRC/VideoLinux1394Cam/conversions.c.
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 53 of file lib/SRC/VideoLinux1394Cam/conversions.c.
#define YUYV |
Definition at line 37 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void BayerDownsample | ( | unsigned char * | src, |
unsigned char * | dest, | ||
int | sx, | ||
int | sy, | ||
bayer_pattern_t | type | ||
) |
Definition at line 776 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void BayerEdgeSense | ( | unsigned char * | src, |
unsigned char * | dest, | ||
int | sx, | ||
int | sy, | ||
bayer_pattern_t | type | ||
) |
Definition at line 560 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void BayerNearestNeighbor | ( | unsigned char * | src, |
unsigned char * | dest, | ||
int | sx, | ||
int | sy, | ||
bayer_pattern_t | type | ||
) |
Definition at line 437 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void rgb2uyvy | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 227 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void rgb482rgb | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 302 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void rgb482uyvy | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 258 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void StereoDecode | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 840 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void uyv2rgb | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 319 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void uyv2uyvy | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 135 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void uyvy2rgb | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 338 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void uyvy2yuyv | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 88 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void uyyvyy2rgb | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 363 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void uyyvyy2uyvy | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 97 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void y162rgb | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels, | ||
int | bits | ||
) |
Definition at line 412 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void y162uyvy | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels, | ||
int | bits | ||
) |
Definition at line 189 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void y162y | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels, | ||
int | bits | ||
) |
Definition at line 214 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void y2rgb | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 397 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void y2uyvy | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 165 of file lib/SRC/VideoLinux1394Cam/conversions.c.
void yuyv2uyvy | ( | unsigned char * | src, |
unsigned char * | dest, | ||
unsigned long long int | NumPixels | ||
) |
Definition at line 78 of file lib/SRC/VideoLinux1394Cam/conversions.c.