[Gridflow-cvs] [svn] commit: r5328 - /trunk/src/quicktimeapple.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Apr 5 21:38:48 EDT 2010


Author: pboivin
Date: Mon Apr  5 21:38:48 2010
New Revision: 5328

Log:
add brightness control for [#io.quicktimecamera] (OSX)

Modified:
    trunk/src/quicktimeapple.cxx

Modified: trunk/src/quicktimeapple.cxx
==============================================================================
--- trunk/src/quicktimeapple.cxx (original)
+++ trunk/src/quicktimeapple.cxx Mon Apr  5 21:38:48 2010
@@ -271,6 +271,8 @@
 	  case 3: e=SGSetChannelPlayFlags(m_vc, channelPlayAllData); break;
 	}
 
+	vdc = SGGetVideoDigitizerComponent(m_vc);
+
 	int dataSize = dim->prod();             
 	buf = new uint8[dataSize];
 	buf2 = new uint8[dataSize];
@@ -299,6 +301,8 @@
   \grin 0 int
   
   \attr t_symbol *name;
+  \attr uint16 brightness();
+
 };
 
 static int nn(int c) {return c?c:' ';}
@@ -309,6 +313,15 @@
 	for (int i=0; i<n; i++) ((uint32 *)buf2)[i] = ((uint32 *)buf)[i] >> 8;
 	out.send(dim->prod(),buf2);
 	SGIdle(m_sg);
+}
+
+\def uint16 brightness () {
+	unsigned short val;
+	VDGetBrightness(vdc,&val);
+	return val;
+}
+\def 0 brightness (uint16 brightness) {
+	VDSetBrightness(vdc,&brightness);
 }
 
 GRID_INLET(0) {



More information about the Gridflow-cvs mailing list