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

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Apr 9 01:43:54 EDT 2010


Author: matju
Date: Fri Apr  9 01:43:54 2010
New Revision: 5419

Log:
remove $2 support in method 'transfer'

Modified:
    trunk/src/videodev.cxx

Modified: trunk/src/videodev.cxx
==============================================================================
--- trunk/src/videodev.cxx (original)
+++ trunk/src/videodev.cxx Fri Apr  9 01:43:54 2010
@@ -239,7 +239,7 @@
 	\attr int tuner();
 	\attr int norm();
 	\decl 0 size (int sy, int sx);
-	\decl 0 transfer (string sym, int queuemax=2);
+	\decl 0 transfer (string sym);
 
 	\attr t_symbol *colorspace;
 	\attr int32  frequency();
@@ -549,18 +549,9 @@
 }
 \def int channel () {return current_channel;}
 
-\def 0 transfer (string sym, int queuemax=2) {
-	if (sym=="read") {
-		dealloc_image();
-		use_mmap = false;
-		post("transfer read");
-	} else if (sym=="mmap") {
-		dealloc_image();
-		use_mmap = true;
-		alloc_image();
-		queuemax=min(8,min(queuemax,vmbuf.frames));
-		post("transfer mmap with queuemax=%d (max max is vmbuf.frames=%d)", queuemax,vmbuf.frames);
-		this->queuemax=queuemax;
+\def 0 transfer (string sym) {
+	if        (sym=="read") {dealloc_image(); use_mmap = false;
+	} else if (sym=="mmap") {dealloc_image(); use_mmap = true;  alloc_image(); //this->queuemax=vmbuf.frames;
 	} else RAISE("don't know that transfer mode");
 }
 



More information about the Gridflow-cvs mailing list