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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 14 16:22:18 EDT 2010


Author: pboivin
Date: Wed Apr 14 16:22:16 2010
New Revision: 5437

Log:
optimize ?

Modified:
    trunk/src/quicktimeapple.cxx

Modified: trunk/src/quicktimeapple.cxx
==============================================================================
--- trunk/src/quicktimeapple.cxx (original)
+++ trunk/src/quicktimeapple.cxx Wed Apr 14 16:22:16 2010
@@ -113,11 +113,17 @@
 //	post("quicktime frame #%d; time=%d duration=%d", nframe, (long)time, (long)duration);
 	SetMovieTimeValue(movie,nframe*duration);
 	MoviesTask(movie,0);
-	GridOutlet out(this,0,dim);
+	GridOutlet out(this,0,dim,cast);
 	uint32 *bufu32 = (uint32 *)buffer;
 	int n = dim->prod()/4;
 	int i;
 	if (is_le()) {
+		for (i=0; i<n&-4; i+=4) {
+			bufu32[i+0]=bufu32[i+0]>>8;
+			bufu32[i+1]=bufu32[i+1]>>8;
+			bufu32[i+2]=bufu32[i+2]>>8;
+			bufu32[i+3]=bufu32[i+3]>>8;
+		}
 		for (; i<n; i++) {
 			bufu32[i+0]=bufu32[i+0]>>8;
 		}



More information about the Gridflow-cvs mailing list