28 #ifndef WINTERMUTE_VIDTHEORAPLAYER_H 29 #define WINTERMUTE_VIDTHEORAPLAYER_H 31 #include "engines/wintermute/base/base.h" 32 #include "engines/wintermute/persistent.h" 33 #include "engines/wintermute/video/video_subtitler.h" 34 #include "video/video_decoder.h" 35 #include "common/stream.h" 36 #include "graphics/surface.h" 44 THEORA_STATE_NONE = 0,
45 THEORA_STATE_PLAYING = 1,
46 THEORA_STATE_PAUSED = 2,
47 THEORA_STATE_FINISHED = 3
66 bool initializeSimple();
68 bool play(TVideoPlayback type = VID_PLAY_CENTER,
int x = 0,
int y = 0,
bool freezeGame =
false,
bool freezeMusic =
true,
bool looping =
false, uint32 startTime = 0,
float forceZoom = -1.0f,
int volume = -1);
70 bool display(uint32 alpha = 0xFFFFFFFF);
75 bool isPlaying()
const {
76 return _state == THEORA_STATE_PLAYING;
78 bool isFinished()
const {
79 return _state == THEORA_STATE_FINISHED;
81 bool isPaused()
const {
82 return _state == THEORA_STATE_PAUSED;
85 uint32 getMovieTime()
const;
93 byte getAlphaAt(
int x,
int y)
const;
96 bool seekToTime(uint32 Time);
105 bool _dontDropFrames;
114 TVideoPlayback _playbackType;
123 bool _seekingKeyframe;
128 bool getIsFrameReady()
const {
129 return _videoFrameReady;
132 bool _audioFrameReady;
133 bool _videoFrameReady;
138 bool _playbackStarted;
140 bool _foundSubtitles;
Definition: base_game.h:76
Definition: base_image.h:45
Definition: video_subtitler.h:36
Definition: video_theora_player.h:41
Definition: video_decoder.h:53
Definition: base_surface.h:38
Definition: achievements_tables.h:27