Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6324 in orxonox.OLD for branches/avi_play/src/subprojects


Ignore:
Timestamp:
Dec 27, 2005, 10:25:48 PM (18 years ago)
Author:
hdavid
Message:

branches\avi_play: MoviePlayer works, at the moment not very fast

Location:
branches/avi_play/src/subprojects/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/avi_play/src/subprojects/importer/movie_player_test.cc

    r6323 r6324  
    2828
    2929  movie_player->printInformation();
    30 
    31   movie_player->start(0);
    3230}
    3331
     
    4139        case SDLK_1:
    4240          movie_player->start(0);
    43           PRINTF(0)("Start\n");
    4441          break;
    4542        case SDLK_2:
    4643          movie_player->resume();
    47           PRINTF(0)("Play-/Resuming\n");
    4844          break;
    4945        case SDLK_3:
    5046          movie_player->pause();
    51           PRINTF(0)("Pause\n");
    5247          break;
    5348        case SDLK_4:
    5449          movie_player->stop();
    55           PRINTF(0)("Stopped\n");
    5650          break;
    5751      }
  • branches/avi_play/src/subprojects/importer/multitex.cc

    r6290 r6324  
    5252  fps = movie->getFPS();
    5353
    54   int start_time = atoi(argv[2]);
     54  int start_frame = atoi(argv[2]);
    5555
    5656  // print information about the media file
     
    6464  //while(seq->addFrame(movie->getNextFrame()) != NULL);
    6565  // get a list of frames
    66   seq->addFrame(movie->getFrame(start_time));
     66  movie->gotoFrame(start_frame);
    6767  seq->addFrameList(movie->getFrameList());
    6868
Note: See TracChangeset for help on using the changeset viewer.