diff options
author | Eugene Sandulenko | 2010-08-31 18:37:59 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2010-10-12 23:22:24 +0000 |
commit | f06db87a0ee0323ceb5a1e946fa9ed1f8576abca (patch) | |
tree | 0470e0049d6c5248251cbc098863f4c5d12a3666 /engines/sword25/fmv/theora_decoder.h | |
parent | 384468c0148ede9ae8140b4fd75183368d26ada6 (diff) | |
download | scummvm-rg350-f06db87a0ee0323ceb5a1e946fa9ed1f8576abca.tar.gz scummvm-rg350-f06db87a0ee0323ceb5a1e946fa9ed1f8576abca.tar.bz2 scummvm-rg350-f06db87a0ee0323ceb5a1e946fa9ed1f8576abca.zip |
SWORD25: Implement playback. Blitting is TODO.
svn-id: r53298
Diffstat (limited to 'engines/sword25/fmv/theora_decoder.h')
-rw-r--r-- | engines/sword25/fmv/theora_decoder.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/engines/sword25/fmv/theora_decoder.h b/engines/sword25/fmv/theora_decoder.h index 7faadfd9dc..3ce53e0900 100644 --- a/engines/sword25/fmv/theora_decoder.h +++ b/engines/sword25/fmv/theora_decoder.h @@ -68,6 +68,10 @@ public: bool isVideoLoaded() const { return _fileStream != 0; } + bool isPaused() const { + return (VideoDecoder::isPaused() || !isVideoLoaded()); + } + uint16 getWidth() const { return _surface->w; } @@ -75,14 +79,18 @@ public: return _surface->h; } uint32 getFrameCount() const { - return _frameCount; + // It is not possible to get frame count easily + // I.e. seeking is required + assert(0); } Graphics::PixelFormat getPixelFormat() const { - return Graphics::PixelFormat(3, 8, 8, 8, 0, 0, 0, 0, 0); + return Graphics::PixelFormat(4, 8, 8, 8, 8, 16, 8, 0, 24); } uint32 getElapsedTime() const; + bool endOfVideo() const; + protected: Common::Rational getFrameRate() const { return _frameRate; |