diff options
author | Sven Hesse | 2010-08-08 00:40:24 +0000 |
---|---|---|
committer | Sven Hesse | 2010-08-08 00:40:24 +0000 |
commit | dcf8298a75cfeb44c6059f03b57f0a61bc062ac0 (patch) | |
tree | 8dd1635d08f69dec42b08c04c5b594968c8619ef /graphics/video/coktel_decoder.h | |
parent | bb746b5b619b439669c878f218b9be91faff549a (diff) | |
download | scummvm-rg350-dcf8298a75cfeb44c6059f03b57f0a61bc062ac0.tar.gz scummvm-rg350-dcf8298a75cfeb44c6059f03b57f0a61bc062ac0.tar.bz2 scummvm-rg350-dcf8298a75cfeb44c6059f03b57f0a61bc062ac0.zip |
VIDEO: Stub IMDDecoder
svn-id: r51862
Diffstat (limited to 'graphics/video/coktel_decoder.h')
-rw-r--r-- | graphics/video/coktel_decoder.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/graphics/video/coktel_decoder.h b/graphics/video/coktel_decoder.h index 6a0ff28762..3e8c03e49e 100644 --- a/graphics/video/coktel_decoder.h +++ b/graphics/video/coktel_decoder.h @@ -144,6 +144,34 @@ private: void renderFrame(); }; +class IMDDecoder : public CoktelDecoder { +public: + IMDDecoder(Audio::Mixer &mixer, Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType); + ~IMDDecoder(); + + bool seek(int32 frame, int whence = SEEK_SET, bool restart = false); + + // VideoDecoder interface + + bool load(Common::SeekableReadStream &stream); + void close(); + + bool isVideoLoaded() const; + + Surface *decodeNextFrame(); + + PixelFormat getPixelFormat() const; + +private: + Common::SeekableReadStream *_stream; + + byte *_videoBuffer; + uint32 _videoBufferSize; + + void processFrame(); + void renderFrame(); +}; + } // End of namespace Graphics #endif // GRAPHICS_VIDEO_COKTELDECODER_H |