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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 19:31:34 EDT 2010


Author: matju
Date: Wed Apr  7 19:31:34 2010
New Revision: 5367

Log:
erratum

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Wed Apr  7 19:31:34 2010
@@ -442,7 +442,7 @@
 			}
 		} else if (cs=="rgba") {
 			for(int y=0; y<sy; y++) {
-				T *buf2 = buf+y*sx*bit_packing4->bytes;
+				uint8 *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);
@@ -608,7 +608,7 @@
 	WIOCTL(fd, VIDIOCSFREQ, &frequency_);
 }
 
-\def 0 colorspace (t_symbol *colorspace) { /* y yuv rgb magic */
+\def 0 colorspace (t_symbol *colorspace) { /* y yuv rgb rgba magic */
 	string c = colorspace->s_name;
 	if (c=="y"    ) {} else
 	if (c=="yuv"  ) {} else



More information about the Gridflow-cvs mailing list