[Gridflow-cvs] [svn] commit: r3874 - /trunk/format/dc1394.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Jun 12 16:14:48 EDT 2008


Author: matju
Date: Thu Jun 12 16:14:47 2008
New Revision: 3874

Log:
bytes/row is hardcoded to 640 until I know where I'm supposed to get that info

Modified:
    trunk/format/dc1394.c

Modified: trunk/format/dc1394.c
==============================================================================
--- trunk/format/dc1394.c (original)
+++ trunk/format/dc1394.c Thu Jun 12 16:14:47 2008
@@ -253,7 +253,8 @@
 	if (dc1394_single_capture(rh,&camera)!=DC1394_SUCCESS) RAISE("dc1394_single_capture error");
 	//setitimer(ITIMER_REAL,0,0);
 	out=new GridOutlet(this,0,new Dim(height,width,1));
-	out->send(out->dim->prod(),(uint8 *)camera.capture_buffer);
+	//out->send(out->dim->prod(),(uint8 *)camera.capture_buffer);
+	for (int i=0; i<height; i++) out->send(out->dim->prod(1),(uint8 *)camera.capture_buffer+640*i);
 	//if (dc1394_stop_iso_transmission(rh,usenode)!=DC1394_SUCCESS) RAISE("dc1394_stop_iso_transmission error");
 	//post("frame_height=%d",camera.frame_height);
 	//post("frame_width=%d" ,camera.frame_width);



More information about the Gridflow-cvs mailing list