[Gridflow-cvs] [svn] commit: r4685 - /trunk/src/gridflow.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Mon Nov 2 12:07:33 EST 2009


Author: matju
Date: Mon Nov  2 12:07:32 2009
New Revision: 4685

Log:
make [#out x11] much faster in some video modes (BBGGRR00 little-endian with types s,i)

Modified:
    trunk/src/gridflow.cxx

Modified: trunk/src/gridflow.cxx
==============================================================================
--- trunk/src/gridflow.cxx (original)
+++ trunk/src/gridflow.cxx Mon Nov  2 12:07:32 2009
@@ -352,6 +352,9 @@
 template <class T> static void   pack3_888d(BitPacking *self, long n, T *in, uint8 *out) {TRACE
 	NTIMES( out[0]=in[0]; out[1]=in[1]; out[2]=in[2]; out[3]=0; out+=4; in+=3; )
 }
+template <class T> static void   pack3_bgrn8888b(BitPacking *self, long n, T *in, uint8 *out) {TRACE
+	NTIMES( out[2]=in[0]; out[1]=in[1]; out[0]=in[2]; out[3]=0; out+=4; in+=4; )
+}
 
 template <class T>
 static void pack3_888b(BitPacking *self, long n, T *in, uint8 *out) {TRACE
@@ -394,7 +397,7 @@
 	ANYCASE(pack2_565),
 	ANYCASE(pack3_888),
 	{pack3_888b, default_pack, default_pack}, /* {pack3_888c, pack3_888c, pack3_888c}, not tested */
-	{pack3_bgrn8888, default_pack, default_pack},
+	{pack3_bgrn8888, pack3_bgrn8888b, pack3_bgrn8888b},
 	ANYCASE(pack3_888d),
 };
 



More information about the Gridflow-cvs mailing list