Changeset 6382 in orxonox.OLD for branches/avi_play/src/subprojects
- Timestamp:
- Jan 1, 2006, 7:58:56 PM (19 years ago)
- Location:
- branches/avi_play/src/subprojects/importer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/subprojects/importer/movie_player_test.cc
r6353 r6382 22 22 23 23 MoviePlayer* movie_player; 24 float start_time; 24 25 25 26 void Framework::moduleInit(int argc, char** argv) 26 27 { 28 if( argc <= 1) 29 { 30 printf("Wrong arguments try following notations:\n"); 31 printf("./movie_player_test [media_file]\n"); 32 exit(0); 33 } 34 27 35 movie_player = new MoviePlayer(argv[1]); 28 29 36 movie_player->printInformation(); 37 38 //start_time = atoi(argv[2]); 39 start_time = 0; 30 40 } 31 41 … … 38 48 { 39 49 case SDLK_1: 40 movie_player->start( 0);50 movie_player->start(start_time); 41 51 break; 42 52 case SDLK_2: -
branches/avi_play/src/subprojects/importer/multitex.cc
r6353 r6382 74 74 obj = new PrimitiveModel(PRIM_PLANE, 10.0); 75 75 break; 76 case SDLK_5:77 media_container->loadFrames();78 counter = 0;79 timer = 0;80 SDL_Delay(1000);81 break;82 76 // increase fps 83 77 case SDLK_9: … … 107 101 timer = 0; 108 102 counter = 0; 109 PRINTF(0)("BEGIN\n");110 PRINTF(0)("total_frames: %i\n", media_container->getFrameCount());111 103 } 112 104 }
Note: See TracChangeset
for help on using the changeset viewer.