[Gridflow-cvs] [svn] commit: r4655 - /trunk/src/gem.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Sun Nov 1 20:23:27 EST 2009


Author: matju
Date: Sun Nov  1 20:23:27 2009
New Revision: 4655

Log:
tried something to make it even faster but it didn't work

Modified:
    trunk/src/gem.cxx

Modified: trunk/src/gem.cxx
==============================================================================
--- trunk/src/gem.cxx (original)
+++ trunk/src/gem.cxx Sun Nov  1 20:23:27 2009
@@ -144,8 +144,18 @@
 		for (int y=0; y<v[0]; y++) {
 			uint8 *data = (uint8 *)im.data+sxc*(yflip?y:sy-1-y);
 			bit_packing->pack(im.xsize,data,buf);
+			// not supposed to be using pack here, but it's faster than unpack, and they're self-inverses here.
 			out.send(sxc,buf);
 		}
+/*		#define FOO(T) { \
+			uint8 buf[sxc]; \
+			for (int y=0; y<v[0]; y++) { \
+				uint8 *data = (uint8 *)im.data+sxc*(yflip?y:sy-1-y); \
+				bit_packing->unpack(im.xsize,data,buf); \
+				out.send(sxc,buf);}}
+		TYPESWITCH(cast,FOO,)
+		#undef FOO
+*/
 	}
 };
 



More information about the Gridflow-cvs mailing list