[Gridflow-cvs] [svn] commit: r5366 - /trunk/src/videodev.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 19:21:41 EDT 2010


Author: matju
Date: Wed Apr  7 19:21:41 2010
New Revision: 5366

Log:
a=255 also for RGB "palettes" (BTTV, etc). WARNING: UNTESTED

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Wed Apr  7 19:21:41 2010
@@ -442,7 +442,9 @@
 			}
 		} else if (cs=="rgba") {
 			for(int y=0; y<sy; y++) {
-			        bit_packing4->unpack(sx,buf+y*sx*bit_packing4->bytes,rgb);
+				T *buf2 = buf+y*sx*bit_packing4->bytes;
+			        bit_packing4->unpack(sx,buf2,rgb);
+			        for (int x=0; x<sx; x++) buf2[4*x+3]=255; /* i hope this is correct. not tested. */
 			 	out.send(bs,rgb);
 			}
 		} else if (cs=="yuv") {



More information about the Gridflow-cvs mailing list