[Sumover-dev] [svn commit] r4593 - vic/branches/mpeg4/video

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Feb 4 15:39:04 GMT 2010


Author: soohyunc
Date: Thu Feb  4 15:39:04 2010
New Revision: 4593

Modified:
   vic/branches/mpeg4/video/grabber-file.cpp

Log:
o  commented out unnecessary debug message
o  added 420 format attribute



Modified: vic/branches/mpeg4/video/grabber-file.cpp
==============================================================================
--- vic/branches/mpeg4/video/grabber-file.cpp	(original)
+++ vic/branches/mpeg4/video/grabber-file.cpp	Thu Feb  4 15:39:04 2010
@@ -91,7 +91,7 @@
 FileDevice::FileDevice(const char* s) : InputDevice(s),
 		frame_(NULL), len_(0), devstat_(-1)
 {
-	attributes_ = "format { 420 } size { small large cif }";
+	attributes_ = "format { 420 cif } size { small large cif }";
 
     debug_msg("FileDevice::FileDevice name=%s\n", s);
 }
@@ -100,15 +100,18 @@
  * FileDevice
  */
 int FileDevice::command(int argc, const char*const* argv) {
-	for (int i = 0; i < argc; i++)
-		debug_msg("FileDevice\t%s\n", argv[i]);
+
+	//for (int i = 0; i < argc; i++)
+	//	debug_msg("FileDevice\t%s\n", argv[i]);
+
     if (argc == 3)
     {
 		if (strcmp(argv[1], "open") == 0)
 		{
 		    const char* fmt = argv[2];
 			TclObject* o = 0;
-			if (strcmp(fmt, "cif") == 0) 
+			if (strcmp(fmt, "cif") == 0 
+				|| strcmp(fmt, "420") == 0) 
 				o = file_grabber();
 		    if (o != 0)
 				Tcl::instance().result(o->name());



More information about the Sumover-dev mailing list