[Gridflow-cvs] [svn] commit: r3303 - in /trunk/format: aalib.c dc1394.c jpeg.c main.c mpeg3.c netpbm.c opengl.c png.c quartz.m quicktimeapple.c quicktimehw.c sdl.c videodev.c x11.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Thu Mar 27 12:17:15 EDT 2008


Author: matju
Date: Thu Mar 27 12:17:15 2008
New Revision: 3303

Log:
number of inlets/outlets no longer specified for formats. it gets uniformised to 1,1.


Modified:
    trunk/format/aalib.c
    trunk/format/dc1394.c
    trunk/format/jpeg.c
    trunk/format/main.c
    trunk/format/mpeg3.c
    trunk/format/netpbm.c
    trunk/format/opengl.c
    trunk/format/png.c
    trunk/format/quartz.m
    trunk/format/quicktimeapple.c
    trunk/format/quicktimehw.c
    trunk/format/sdl.c
    trunk/format/videodev.c
    trunk/format/x11.c

Modified: trunk/format/aalib.c
==============================================================================
--- trunk/format/aalib.c (original)
+++ trunk/format/aalib.c Thu Mar 27 12:17:15 2008
@@ -150,7 +150,7 @@
 		rb_hash_aset(drivers,ID2SYM(rb_intern((*p)->shortname)), PTR2FIX(*p));
 	}
 // IEVAL(rself,"GridFlow.post('aalib supports: %s', @drivers.keys.join(', '))");
-	install_format("#in:aalib",1,1,2,"");
+	install_format("#in:aalib",2,"");
 }
 \end class FormatAALib
 void startup_aalib () {

Modified: trunk/format/dc1394.c
==============================================================================
--- trunk/format/dc1394.c (original)
+++ trunk/format/dc1394.c Thu Mar 27 12:17:15 2008
@@ -334,7 +334,7 @@
 }
 
 \classinfo {
-	install_format("#io:dc1394",1,1,4,"");
+	install_format("#io:dc1394",4,"");
 	//IEVAL(rself,ruby_code);
 	rb_funcall(rself,SI(instance_eval),3,rb_str_new2(ruby_code),
 		rb_str_new2(__FILE__),INT2NUM(ruby_lineno+3));

Modified: trunk/format/jpeg.c
==============================================================================
--- trunk/format/jpeg.c (original)
+++ trunk/format/jpeg.c Thu Mar 27 12:17:15 2008
@@ -121,7 +121,7 @@
 	bit_packing = new BitPacking(is_le(),3,3,mask);
 }
 
-\classinfo {install_format("#io:jpeg",1,1,6,"jpeg jpg");}
+\classinfo {install_format("#io:jpeg",6,"jpeg jpg");}
 \end class FormatJPEG
 void startup_jpeg () {
 	\startall

Modified: trunk/format/main.c
==============================================================================
--- trunk/format/main.c (original)
+++ trunk/format/main.c Thu Mar 27 12:17:15 2008
@@ -257,7 +257,7 @@
 	//@stream.close if @stream
 	//GridFlow.hunt_zombies
 }
-\end class FormatGrid {install_format("#io:grid",1,1,6,"grid");}
+\end class FormatGrid {install_format("#io:grid",6,"grid");}
 
 void startup_format () {
 	\startall

Modified: trunk/format/mpeg3.c
==============================================================================
--- trunk/format/mpeg3.c (original)
+++ trunk/format/mpeg3.c Thu Mar 27 12:17:15 2008
@@ -87,7 +87,7 @@
 	if (!mpeg) RAISE("IO Error: can't open file `%s': %s", filename, strerror(errno));
 }
 
-\classinfo {install_format("#io:mpeg",1,1,4,"mpg mpeg");}
+\classinfo {install_format("#io:mpeg",4,"mpg mpeg");}
 \end class FormatMPEG3
 void startup_mpeg3 () {
 	\startall

Modified: trunk/format/netpbm.c
==============================================================================
--- trunk/format/netpbm.c (original)
+++ trunk/format/netpbm.c Thu Mar 27 12:17:15 2008
@@ -93,7 +93,7 @@
 	fflush(f);
 } GRID_END
 
-\classinfo {install_format("#io:netpbm",1,1,6,"ppm pgm pnm pam");}
+\classinfo {install_format("#io:netpbm",6,"ppm pgm pnm pam");}
 \end class FormatNetPBM
 
 void startup_netpbm () {

Modified: trunk/format/opengl.c
==============================================================================
--- trunk/format/opengl.c (original)
+++ trunk/format/opengl.c Thu Mar 27 12:17:15 2008
@@ -171,7 +171,7 @@
 	gfpost("@clock = Clock.new self");
 }
 
-\classinfo {install_format("#io:opengl",1,1,2,"");}
+\classinfo {install_format("#io:opengl",2,"");}
 \end class FormatOpenGL
 void startup_opengl () {
 	\startall

Modified: trunk/format/png.c
==============================================================================
--- trunk/format/png.c (original)
+++ trunk/format/png.c Thu Mar 27 12:17:15 2008
@@ -115,7 +115,7 @@
 	bit_packing = new BitPacking(is_le(),3,3,mask);
 }
 
-\classinfo { install_format("#io:png",1,1,4,"png"); }
+\classinfo { install_format("#io:png",4,"png"); }
 \end class FormatPNG
 void startup_png () {
 	\startall

Modified: trunk/format/quartz.m
==============================================================================
--- trunk/format/quartz.m (original)
+++ trunk/format/quartz.m Thu Mar 27 12:17:15 2008
@@ -223,7 +223,7 @@
 	distantFuture = [NSDate distantFuture];
 	distantPast = [NSDate distantPast];
 	[NSApplication sharedApplication];
-	install_format("#io:quartz",1,1,2,"");
+	install_format("#io:quartz",2,"");
 \end ruby
 );}
 

Modified: trunk/format/quicktimeapple.c
==============================================================================
--- trunk/format/quicktimeapple.c (original)
+++ trunk/format/quicktimeapple.c Thu Mar 27 12:17:15 2008
@@ -335,7 +335,7 @@
 } GRID_FLOW {
 } GRID_FINISH {
 } GRID_END
-\end class FormatQuickTimeCamera {install_format("#io:quicktimecamera",1,1,4,"");}
+\end class FormatQuickTimeCamera {install_format("#io:quicktimecamera",4,"");}
 
 \class FormatQuickTimeApple : Format {
 	Movie movie;
@@ -465,7 +465,7 @@
 
 \classinfo {
 	EnterMovies();
-	install_format("#io:quicktime",1,1,4,"mov");
+	install_format("#io:quicktime",4,"mov");
 }
 \end class FormatQuickTimeApple
 void startup_quicktimeapple () {

Modified: trunk/format/quicktimehw.c
==============================================================================
--- trunk/format/quicktimehw.c (original)
+++ trunk/format/quicktimehw.c Thu Mar 27 12:17:15 2008
@@ -210,7 +210,7 @@
 	bit_packing = new BitPacking(is_le(),3,3,mask);
 }
 
-\classinfo {install_format("#io:quicktime",1,2,6,"mov");
+\classinfo {install_format("#io:quicktime",6,"mov");
 //  def self.info; %[codecs: #{@codecs.keys.join' '}] end
 //#define L fprintf(stderr,"%s:%d in %s\n",__FILE__,__LINE__,__PRETTY_FUNCTION__);
 #ifdef LQT_VERSION

Modified: trunk/format/sdl.c
==============================================================================
--- trunk/format/sdl.c (original)
+++ trunk/format/sdl.c Thu Mar 27 12:17:15 2008
@@ -106,7 +106,7 @@
 	IEVAL(rself,"@clock = Clock.new self");
 }
 
-\end class FormatSDL {install_format("#io:sdl",1,1,2,"");}
+\end class FormatSDL {install_format("#io:sdl",2,"");}
 void startup_sdl () {
 	\startall
 }

Modified: trunk/format/videodev.c
==============================================================================
--- trunk/format/videodev.c (original)
+++ trunk/format/videodev.c Thu Mar 27 12:17:15 2008
@@ -753,7 +753,7 @@
 	rb_funcall(rself,SI(initialize2),0); // name conflict...
 }
 
-\end class FormatVideoDev {install_format("#io:videodev",1,2,4,"");}
+\end class FormatVideoDev {install_format("#io:videodev",4,"");}
 void startup_videodev () {
 	\startall
 }

Modified: trunk/format/x11.c
==============================================================================
--- trunk/format/x11.c (original)
+++ trunk/format/x11.c Thu Mar 27 12:17:15 2008
@@ -661,7 +661,7 @@
 	show_section(0,0,sx,sy);
 }
 
-\end class FormatX11 {install_format("#io:x11",1,1,6,"");}
+\end class FormatX11 {install_format("#io:x11",6,"");}
 void startup_x11 () {
 	\startall
 }



More information about the Gridflow-cvs mailing list