22 #ifndef GRIM_MOVIE_PLAYER_H 23 #define GRIM_MOVIE_PLAYER_H 25 #include "common/mutex.h" 26 #include "common/system.h" 28 #include "video/video_decoder.h" 41 const byte *_internalPalette;
42 byte *_externalPalette;
71 virtual bool play(
const Common::String &filename,
bool looping,
int x,
int y,
bool start =
true,
bool showSubtitles =
false);
73 virtual void pause(
bool p);
74 virtual bool isPlaying() {
return !_videoFinished; }
75 virtual bool isUpdateNeeded() {
return _updateNeeded; }
77 virtual const byte *getDstPalette();
78 virtual int getX() {
return _x; }
79 virtual int getY() {
return _y; }
80 virtual int getFrame() {
return _frame; }
81 virtual void clearUpdateNeeded() { _updateNeeded =
false; }
82 virtual int32 getMovieTime() {
return (int32)_movieTime; }
85 void drawMovieSubtitle();
95 static void timerCallback(
void *ptr);
virtual bool loadFile(const Common::String &filename)
Definition: savegame.h:33
virtual void postHandleFrame()
Definition: movie.h:127
virtual bool prepareFrame()
virtual void handleFrame()
Definition: movie.h:115
virtual void save(SaveGame *state)
Definition: movie.h:164
Definition: video_decoder.h:53
void saveState(SaveGame *state)
virtual void restore(SaveGame *state)
Definition: movie.h:173
virtual bool play(const Common::String &filename, bool looping, int x, int y, bool start=true, bool showSubtitles=false)