[Gridflow-cvs] [svn] commit: r6426 - /trunk/src/dc1394.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Tue Oct 26 13:18:53 EDT 2010


Author: matju
Date: Tue Oct 26 13:18:51 2010
New Revision: 6426

Log:
partial fix for dc1394... maybe

Modified:
    trunk/src/dc1394.cxx

Modified: trunk/src/dc1394.cxx
==============================================================================
--- trunk/src/dc1394.cxx (original)
+++ trunk/src/dc1394.cxx Tue Oct 26 13:18:51 2010
@@ -189,7 +189,7 @@
 			bool is_there = f.available;
 			post("  feature %d '%s' is %s",id,name.data(),is_there?"present":"absent");
 			if (!is_there) continue;
-			post("    min=%u max=%u abs_min=%u abs_max=%u",f.min,f.max,f.abs_min,f.abs_max);
+			post("    min=%u max=%u abs_min=%d abs_max=%d",f.min,f.max,double(f.abs_min),double(f.abs_max));
 		}
 		framerate_e = FRAMERATE_30;
 		height = 480;
@@ -258,9 +258,9 @@
 	//signal(SIGALRM,rien);
 	if (dc1394_single_capture(rh,&camera)!=DC1394_SUCCESS) RAISE("dc1394_single_capture error");
 	//setitimer(ITIMER_REAL,0,0);
-	out=new GridOut(this,0,Dim(height,width,1));
-	//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);
+	go=new GridOut(this,0,Dim(height,width,1));
+	//go->send(out->dim.prod(),(uint8 *)camera.capture_buffer);
+	for (int i=0; i<height; i++) go->send(go->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