[Gridflow-cvs] [svn] commit: r3720 - in /trunk/format: mpeg3.c quicktimehw.c

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Fri May 23 12:02:03 EDT 2008


Author: matju
Date: Fri May 23 12:02:03 2008
New Revision: 3720

Log:
reenable rewind in videos

Modified:
    trunk/format/mpeg3.c
    trunk/format/quicktimehw.c

Modified: trunk/format/mpeg3.c
==============================================================================
--- trunk/format/mpeg3.c (original)
+++ trunk/format/mpeg3.c Fri May 23 12:02:03 2008
@@ -46,10 +46,12 @@
 		if (!mpeg) RAISE("IO Error: can't open file `%s': %s", filename.data(), strerror(errno));
 	}
 	\decl 0 seek (int frame);
+	\decl 0 rewind ();
 	\decl 0 bang ();
 };
 
 \def 0 seek (int frame) { mpeg3_set_frame(mpeg,frame,track); }
+\def 0 rewind () {_0_seek(0,0,0);}
 
 \def 0 bang () {
 	int nframe = mpeg3_get_frame(mpeg,track);

Modified: trunk/format/quicktimehw.c
==============================================================================
--- trunk/format/quicktimehw.c (original)
+++ trunk/format/quicktimehw.c Fri May 23 12:02:03 2008
@@ -74,6 +74,7 @@
 	}
 	\decl 0 bang ();
 	\decl 0 seek (int frame);
+	\decl 0 rewind ();
 	\decl 0 force_size (int32 height, int32 width);
 	\decl 0 codec (string c);
 	\decl 0 colorspace (string c);
@@ -86,6 +87,7 @@
 
 \def 0 force_size (int32 height, int32 width) { force = new Dim(height, width); }
 \def 0 seek (int frame) {quicktime_set_video_position(anim,frame,track);}
+\def 0 rewind () {_0_seek(0,0,0);}
 
 \def 0 bang () {
 	int nframe = quicktime_video_position(anim,track);



More information about the Gridflow-cvs mailing list