diff options
author | Einar Johan Trøan Sømåen | 2013-04-17 21:14:20 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2013-04-17 21:21:17 +0200 |
commit | b71570b4c8cae4ea42a18ecca5257c97df460aa5 (patch) | |
tree | e8246c1dcaeb24e39c01ac86702e350afdfc573b /engines/wintermute/video/video_theora_player.h | |
parent | 76d9256679040abc8d566d9e579820861ff1a41f (diff) | |
download | scummvm-rg350-b71570b4c8cae4ea42a18ecca5257c97df460aa5.tar.gz scummvm-rg350-b71570b4c8cae4ea42a18ecca5257c97df460aa5.tar.bz2 scummvm-rg350-b71570b4c8cae4ea42a18ecca5257c97df460aa5.zip |
WINTERMUTE: Improve const-usage in VideoTheoraPlayer.
Diffstat (limited to 'engines/wintermute/video/video_theora_player.h')
-rw-r--r-- | engines/wintermute/video/video_theora_player.h | 41 |
1 files changed, 20 insertions, 21 deletions
diff --git a/engines/wintermute/video/video_theora_player.h b/engines/wintermute/video/video_theora_player.h index 7a6742271c..91ba2453bc 100644 --- a/engines/wintermute/video/video_theora_player.h +++ b/engines/wintermute/video/video_theora_player.h @@ -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 - TVideoPlayback _playbackType; int _posX; int _posY; + + bool _dontDropFrames; +private: + int _state; + uint32 _startTime; + + int _savedState; + uint32 _savedPos; + + // video properties + TVideoPlayback _playbackType; + bool _looping; float _playZoom; int _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; |