[Gridflow-cvs] [svn] commit: r5375 - /trunk/src/quicktimecamera.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 21:04:35 EDT 2010


Author: matju
Date: Wed Apr  7 21:04:34 2010
New Revision: 5375

Log:
colorspace rgba: alpha=255

Modified:
    trunk/src/quicktimecamera.cxx

Modified: trunk/src/quicktimecamera.cxx
==============================================================================
--- trunk/src/quicktimecamera.cxx (original)
+++ trunk/src/quicktimecamera.cxx Wed Apr  7 21:04:34 2010
@@ -355,7 +355,7 @@
 		out.send(dim->prod(),buf2);
 	} else if (cs=="rgba") { // does this really work on PPC ?
 		int n = dim->prod()/4;
-		for (int i=0; i<n; i++) ((uint32 *)buf2)[i] = ((uint32 *)buf)[i] >> 8;
+		for (int i=0; i<n; i++) ((uint32 *)buf2)[i] = (((uint32 *)buf)[i] >> 8) | 0xff000000;
 		out.send(dim->prod(),buf2);
 	} else
 		RAISE("colorspace problem");



More information about the Gridflow-cvs mailing list