39 #include <dc1394/dc1394.h> 50 void inline uyv2rgb(
const unsigned char *src,
unsigned char *dest,
51 unsigned long long int NumPixels)
53 register int i = NumPixels + (NumPixels << 1) - 1;
54 register int j = NumPixels + (NumPixels << 1) - 1;
62 YUV2RGB(y, u, v, r, g, b);
70 void inline uyvy2rgb(
unsigned char *src,
unsigned char *dest,
71 unsigned long long int NumPixels)
73 register int i = (NumPixels << 1)-1;
74 register int j = NumPixels + ( NumPixels << 1 ) -1;
75 register int y0, y1, u, v;
80 y1 = (
unsigned char) src[i--];
81 v = (
unsigned char) src[i--] - 128;
82 y0 = (
unsigned char) src[i--];
83 u = (
unsigned char) src[i--] - 128;
84 YUV2RGB (y1, u, v, r, g, b);
88 YUV2RGB (y0, u, v, r, g, b);
96 void inline uyyvyy2rgb(
const unsigned char *src,
unsigned char *dest,
97 unsigned long long int NumPixels)
99 register int i = NumPixels + (NumPixels >> 1) - 1;
100 register int j = NumPixels + (NumPixels << 1) - 1;
101 register int y0, y1, y2, y3, u, v;
102 register int r, g, b;
111 YUV2RGB(y3, u, v, r, g, b);
115 YUV2RGB(y2, u, v, r, g, b);
119 YUV2RGB(y1, u, v, r, g, b);
123 YUV2RGB(y0, u, v, r, g, b);
TFSIMD_FORCE_INLINE const tfScalar & y() const
void uyvy2rgb(unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
void uyyvyy2rgb(const unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)
void uyv2rgb(const unsigned char *src, unsigned char *dest, unsigned long long int NumPixels)