[Gridflow-cvs] [svn] commit: r5330 - in /trunk: TODO src/quicktimeapple.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 5 22:03:40 EDT 2010


Author: pboivin
Date: Mon Apr  5 22:03:40 2010
New Revision: 5330

Log:
add contrast, hue and colour (saturation) control for [#io.quicktimecamera] (OSX)

Modified:
    trunk/TODO
    trunk/src/quicktimeapple.cxx

Modified: trunk/TODO
==============================================================================
--- trunk/TODO (original)
+++ trunk/TODO Mon Apr  5 22:03:40 2010
@@ -1,7 +1,6 @@
 $Id$
 
 9.9, assigned to Patrick:
-[ ] [#io.quicktimecamera] contrast, brightness, hue, saturation, colour, etc.
 [ ] [#io.quicktimecamera] minsize, size, maxsize
 [ ] [#io.quicktimecamera] colorspace rgb                  (urgent)
 [ ] [#io.quicktimecamera] colorspace y, ya, yuv, yuva (PAS urgent)

Modified: trunk/src/quicktimeapple.cxx
==============================================================================
--- trunk/src/quicktimeapple.cxx (original)
+++ trunk/src/quicktimeapple.cxx Mon Apr  5 22:03:40 2010
@@ -302,6 +302,9 @@
   
   \attr t_symbol *name;
   \attr uint16 brightness();
+  \attr uint16 contrast();
+  \attr uint16 hue();
+  \attr uint16 colour();
 
 };
 
@@ -315,14 +318,15 @@
 	SGIdle(m_sg);
 }
 
-\def uint16 brightness () {
-	unsigned short val;
-	VDGetBrightness(vdc,&val);
-	return val;
-}
-\def 0 brightness (uint16 brightness) {
-	VDSetBrightness(vdc,&brightness);
-}
+unsigned short val;
+\def uint16 brightness ()             { VDGetBrightness(vdc,&val); return val; }
+\def 0 brightness (uint16 brightness) { VDSetBrightness(vdc,&brightness); }
+\def uint16 contrast ()               { VDGetContrast(vdc,&val); return val; }
+\def 0 contrast (uint16 contrast)     { VDSetContrast(vdc,&contrast);}
+\def uint16 hue ()                    { VDGetHue(vdc,&val); return val; }
+\def 0 hue (uint16 hue)               { VDSetHue(vdc,&hue);}
+\def uint16 colour ()                 { VDGetSaturation(vdc,&val); return val; }
+\def 0 colour (uint16 colour)         { VDSetSaturation(vdc,&colour);}
 
 GRID_INLET(0) {
 	RAISE("Unimplemented. Sorry.");



More information about the Gridflow-cvs mailing list