Changeset 6254 in orxonox.OLD for branches/avi_play/src/subprojects
- Timestamp:
- Dec 21, 2005, 5:25:04 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/subprojects/importer/multitex.cc
r6168 r6254 44 44 void Framework::moduleInit(int argc, char** argv) 45 45 { 46 if( argc <= 1)46 if( argc <= 2) 47 47 { 48 48 printf("Wrong arguments try following notations:\n"); 49 printf("./multitex [media File]\n");49 printf("./multitex [media_file] [start_time]\n"); 50 50 exit(0); 51 51 } … … 53 53 movie = new MediaContainer(argv[1]); 54 54 fps = movie->getFPS(); 55 56 float start_time = atoi(argv[2]); 55 57 56 58 // print information about the media file … … 63 65 seq = new TextureSequence(); 64 66 65 // get each fram individually 67 // get each fram individually 66 68 //while(seq->addFrame(movie->getNextFrame()) != NULL); 67 69 // get a list of frames 70 seq->addFrame(movie->getFrame(start_time)); 68 71 seq->addFrameList(movie->getFrameList()); 69 72 … … 122 125 { 123 126 counter = fps * timer; 124 127 125 128 if (counter > seq->getFrameCount()) 126 129 { … … 130 133 131 134 seq->gotoFrame(counter); 132 } 135 } 133 136 } 134 137
Note: See TracChangeset
for help on using the changeset viewer.