[Okvm-cvs] okvm/realvnc/rdr types.h,1.1.1.1,1.2
Status: Pre-Alpha
Brought to you by:
david-m
|
From: David M. <da...@us...> - 2006-05-28 11:53:13
|
Update of /cvsroot/okvm/okvm/realvnc/rdr In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv25632/realvnc/rdr Modified Files: types.h Log Message: This patch allows using 24bpp data sources. This lets me use my webcams and ensures my colors are what they should be. It wasn't the easiest as there is no native 24 bit datatype. The patch uses C++ object for the 24bit data type. Scott Burns <sb...@ii...> Index: types.h =================================================================== RCS file: /cvsroot/okvm/okvm/realvnc/rdr/types.h,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** types.h 4 Nov 2005 12:17:46 -0000 1.1.1.1 --- types.h 28 May 2006 11:53:06 -0000 1.2 *************** *** 52,55 **** --- 52,67 ---- }; + class U24 { + public: + unsigned char blue; + unsigned char green; + unsigned char red; + U24(); + U24 operator + (U24); + int operator >> (int); + U24 operator = (int); + U24 operator [] (U24); + }; + } // end of namespace rdr |