diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-09-01 18:22:57 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2003-09-01 18:22:57 +0000 |
commit | 1719a56dc3b872e8238b8ea945b5a1f934bde031 (patch) | |
tree | d3d2f7f0b70b5e1c323858a9743e9c535b204706 /gem2pdp/yuv.h | |
parent | e5333824d29ee2a92ec2c474bffe03d83dac8d73 (diff) |
moved gem2pdp to the CVSROOT/externals/
svn path=/trunk/externals/unauthorized/; revision=922
Diffstat (limited to 'gem2pdp/yuv.h')
-rw-r--r-- | gem2pdp/yuv.h | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/gem2pdp/yuv.h b/gem2pdp/yuv.h deleted file mode 100644 index 598e087..0000000 --- a/gem2pdp/yuv.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * EffecTV - Realtime Digital Video Effector - * Copyright (C) 2001-2002 FUKUCHI Kentaro - * - * yuv.c: YUV(YCbCr) color system utilities - * - */ - -#include <math.h> - -/* - * conversion from YUV to RGB - * r = 1.164*(y-16) + 1.596*(v-128); - * g = 1.164*(y-16) - 0.813*(v-128) - 0.391*(u-128); - * b = 1.164*(y-16) + 2.018*(u-128); - * conversion from RGB to YUV - * y = 0.257*r + 0.504*g + 0.098*b + 16 - * u = -0.148*r - 0.291*g + 0.439*b + 128 - * v = 0.439*r - 0.368*g - 0.071*b + 128 - */ - -extern "C" { -int yuv_init(void); -unsigned char yuv_RGBtoY(int rgb); -unsigned char yuv_RGBtoU(int rgb); -unsigned char yuv_RGBtoV(int rgb); -unsigned char yuv_YUVtoR(unsigned char y, unsigned char u, unsigned char v); -unsigned char yuv_YUVtoG(unsigned char y, unsigned char u, unsigned char v); -unsigned char yuv_YUVtoB(unsigned char y, unsigned char u, unsigned char v); -int yuv_YUVtoRGB(unsigned char y, unsigned char u, unsigned char v); -void yuv_Y122RGB( short int* packet, unsigned int *rgb, int width, int height ); -void yuv_RGB2Y12( unsigned int *rgb, short int* packet, int width, int height ); -} |