aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/video/video_theora_player.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/wintermute/video/video_theora_player.h')
-rw-r--r--engines/wintermute/video/video_theora_player.h47
1 files changed, 23 insertions, 24 deletions
diff --git a/engines/wintermute/video/video_theora_player.h b/engines/wintermute/video/video_theora_player.h
index 593c1b9666..364509a080 100644
--- a/engines/wintermute/video/video_theora_player.h
+++ b/engines/wintermute/video/video_theora_player.h
@@ -62,7 +62,7 @@ public:
//CVidSubtitler *_subtitler;
// control methods
- bool initialize(const Common::String &filename, const Common::String &subtitleFile = NULL);
+ bool initialize(const Common::String &filename, const Common::String &subtitleFile = nullptr);
bool initializeSimple();
bool update();
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);
@@ -72,64 +72,63 @@ public:
bool pause();
bool resume();
- bool isPlaying() {
+ bool isPlaying() const {
return _state == THEORA_STATE_PLAYING;
};
- bool isFinished() {
+ bool isFinished() const {
return _state == THEORA_STATE_FINISHED;
};
- bool isPaused() {
+ bool isPaused() const {
return _state == THEORA_STATE_PAUSED;
};
- uint32 getMovieTime();
-
- BaseSurface *getTexture();
-
- int _state;
- uint32 _startTime;
-
- int _savedState;
- uint32 _savedPos;
+ uint32 getMovieTime() const;
+ BaseSurface *getTexture() const;
// alpha related
BaseImage *_alphaImage;
Common::String _alphaFilename;
bool setAlphaImage(const Common::String &filename);
- __inline byte getAlphaAt(int x, int y);
+ __inline byte getAlphaAt(int x, int y) const;
void writeAlpha();
bool seekToTime(uint32 Time);
-
void cleanup();
bool resetStream();
// video properties
+ int32 _posX;
+ int32 _posY;
+
+ bool _dontDropFrames;
+private:
+ int32 _state;
+ uint32 _startTime;
+
+ int32 _savedState;
+ uint32 _savedPos;
+
+ // video properties
TVideoPlayback _playbackType;
- int _posX;
- int _posY;
+ bool _looping;
float _playZoom;
- int _volume;
+ int32 _volume;
- bool _looping;
- bool _dontDropFrames;
bool _freezeGame;
uint32 _currentTime;
-
-private:
// seeking support
bool _seekingKeyframe;
float _timeOffset;
bool _frameRendered;
- bool getIsFrameReady() {
+ bool getIsFrameReady() const {
return _videoFrameReady;
}
-private:
+
bool _audioFrameReady;
bool _videoFrameReady;
float _videobufTime;