Changeset 6330 in orxonox.OLD for branches/avi_play/src
- Timestamp:
- Dec 29, 2005, 1:49:53 AM (19 years ago)
- Location:
- branches/avi_play/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/avi_play/src/lib/graphics/importer/media_container.h
r6324 r6330 44 44 45 45 int num_bytes; 46 uint8_t *buffer;46 uint8_t* buffer; 47 47 int video_stream; 48 48 int duration; -
branches/avi_play/src/lib/graphics/importer/movie_player.cc
r6325 r6330 82 82 } 83 83 84 void MoviePlayer::start(unsigned int start_ frame)84 void MoviePlayer::start(unsigned int start_time) 85 85 { 86 86 status = PLAY; … … 88 88 fps = media_container->getFPS(); 89 89 90 media_container->gotoFrame(start_ frame);90 media_container->gotoFrame(start_time * fps); 91 91 92 PRINTF(0)("start \n");92 PRINTF(0)("start (start_time: %0.2f)\n", start_time * fps); 93 93 } 94 94 … … 125 125 current_frame = media_container->getFrameNumber(); 126 126 timer += dt; 127 actu el_frame = timer * fps * speed;127 actual_frame = timer * fps * speed; 128 128 129 if(actu el_frame != current_frame)129 if(actual_frame != current_frame) 130 130 { 131 if(actu el_frame - current_frame == 1)131 if(actual_frame - current_frame == 1) 132 132 texture = media_container->getNextFrame(); 133 133 else 134 texture = media_container->skipFrame(actu el_frame - current_frame - 1);134 texture = media_container->skipFrame(actual_frame - current_frame - 1); 135 135 } 136 136 //PRINTF(0)("frame_number: %i\n", media_container->getFrameNumber()); -
branches/avi_play/src/lib/graphics/importer/movie_player.h
r6324 r6330 41 41 float speed; 42 42 float timer; 43 int actu el_frame;43 int actual_frame; 44 44 int current_frame; 45 45 float fps; … … 54 54 void loadMovie(const char* filename); 55 55 56 void start(unsigned int start_ frame);56 void start(unsigned int start_time); 57 57 void resume(); 58 58 void pause(); -
branches/avi_play/src/subprojects/importer/multitex.cc
r6324 r6330 62 62 63 63 // get each fram individually 64 //while(seq->addFrame(movie->getNextFrame()) != NULL);64 while(seq->addFrame(movie->getNextFrame()) != NULL); 65 65 // get a list of frames 66 movie->gotoFrame(start_frame);67 seq->addFrameList(movie->getFrameList());66 //movie->gotoFrame(start_frame); 67 //seq->addFrameList(movie->getFrameList()); 68 68 69 69 testMat->setDiffuseMap("maps/radialTransparency.png");
Note: See TracChangeset
for help on using the changeset viewer.