diff options
author | Filippos Karapetis | 2009-01-06 17:44:41 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-01-06 17:44:41 +0000 |
commit | a930f402727940bb5778980d031b6cc66263f3a0 (patch) | |
tree | 170f30e81c7a6ed69627c7ecd906f9d57a19ff10 /graphics/video/dxa_player.h | |
parent | fa1d881ad44a515e57b87ba27b325d1eeb4a750b (diff) | |
download | scummvm-rg350-a930f402727940bb5778980d031b6cc66263f3a0.tar.gz scummvm-rg350-a930f402727940bb5778980d031b6cc66263f3a0.tar.bz2 scummvm-rg350-a930f402727940bb5778980d031b6cc66263f3a0.zip |
An attempt to unify the different video players (FLIC player is not finished yet) - step 1
svn-id: r35757
Diffstat (limited to 'graphics/video/dxa_player.h')
-rw-r--r-- | graphics/video/dxa_player.h | 41 |
1 files changed, 23 insertions, 18 deletions
diff --git a/graphics/video/dxa_player.h b/graphics/video/dxa_player.h index 44db6fb99e..3239913131 100644 --- a/graphics/video/dxa_player.h +++ b/graphics/video/dxa_player.h @@ -38,24 +38,6 @@ enum ScaleMode { }; class DXAPlayer { -protected: - byte *_frameBuffer1; - byte *_frameBuffer2; - byte *_scaledBuffer; - byte *_drawBuffer; - byte *_inBuffer; - uint32 _inBufferSize; - byte *_decompBuffer; - uint32 _decompBufferSize; - uint16 _width; - uint16 _height, _curHeight; - uint16 _framesCount; - uint32 _framesPerSec; - uint16 _frameNum; - uint32 _frameSize; - uint32 _frameTicks; - ScaleMode _scaleMode; - public: DXAPlayer(); virtual ~DXAPlayer(); @@ -107,6 +89,11 @@ public: */ void closeFile(); + /** + * Returns if a video file is loaded or not + */ + bool videoIsLoaded() { return (_fileStream != NULL); } + protected: /** * Set RGB palette, based on current frame @@ -134,6 +121,24 @@ protected: void decode13(int size); Common::SeekableReadStream *_fileStream; + +private: + byte *_frameBuffer1; + byte *_frameBuffer2; + byte *_scaledBuffer; + byte *_drawBuffer; + byte *_inBuffer; + uint32 _inBufferSize; + byte *_decompBuffer; + uint32 _decompBufferSize; + uint16 _width; + uint16 _height, _curHeight; + uint16 _framesCount; + uint32 _framesPerSec; + uint16 _frameNum; + uint32 _frameSize; + uint32 _frameTicks; + ScaleMode _scaleMode; }; } // End of namespace Graphics |