[Gridflow-cvs] [svn] commit: r5369 - /trunk/src/quicktimecamera.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Wed Apr 7 20:16:29 EDT 2010


Author: pboivin
Date: Wed Apr  7 20:16:28 2010
New Revision: 5369

Log:
fix last commit (colorspace rgb now working)

Modified:
    trunk/src/quicktimecamera.cxx

Modified: trunk/src/quicktimecamera.cxx
==============================================================================
--- trunk/src/quicktimecamera.cxx (original)
+++ trunk/src/quicktimecamera.cxx Wed Apr  7 20:16:28 2010
@@ -318,8 +318,8 @@
 	if (c=="rgba" ) {} else
 	//if (c=="magic") {} else
 	   RAISE("got '%s' but supported colorspaces are: rgb rgba",c.data());
-	uint32 masks[4]={0x00ff0000,0x0000ff00,0x000000ff,0x00000000};
-	bit_packing3 = new BitPacking(is_le(),bytes,3,masks);
+	uint32 masks[4]={0x0000ff00,0x00ff0000,0xff000000,0x00000000};
+	bit_packing3 = new BitPacking(is_le(),4,3,masks);
 	//bit_packing4 = new BitPacking(is_le(),bytes,4,masks);
 	this->colorspace=gensym(c.data());
 	dim = new Dim(dim->v[0],dim->v[1],c=="y"?1:c=="rgba"?4:3);
@@ -338,7 +338,7 @@
 			buf2[j+2] = buf[i+2];
 		}*/
 		//bit_packing3->unpack(sx,buf+y*sx*bit_packing3->bytes,rgb);
-		bit_packing3->unpack(n,buf2,buf);
+		bit_packing3->unpack(n,buf,buf2);
 		out.send(dim->prod(),buf2);
 		SGIdle(m_sg);
 	} else



More information about the Gridflow-cvs mailing list