diff options
author | Matthew Hoops | 2010-05-23 23:26:28 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-05-23 23:26:28 +0000 |
commit | 8f14c15b1afc51a860d7fae28a59cbcd4d7d4d04 (patch) | |
tree | 0cbd344af6dbce6450bfba1a9d061558c4348853 /graphics/video/qt_decoder.h | |
parent | b3bd797e019c20de1d4bfdac131e6e3e2c45860a (diff) | |
download | scummvm-rg350-8f14c15b1afc51a860d7fae28a59cbcd4d7d4d04.tar.gz scummvm-rg350-8f14c15b1afc51a860d7fae28a59cbcd4d7d4d04.tar.bz2 scummvm-rg350-8f14c15b1afc51a860d7fae28a59cbcd4d7d4d04.zip |
Add support for loading the QuickTime 'moov' atom from the file's resource fork, needed for SCI Mac.
svn-id: r49172
Diffstat (limited to 'graphics/video/qt_decoder.h')
-rw-r--r-- | graphics/video/qt_decoder.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/graphics/video/qt_decoder.h b/graphics/video/qt_decoder.h index dc0557b388..545866f9e5 100644 --- a/graphics/video/qt_decoder.h +++ b/graphics/video/qt_decoder.h @@ -45,6 +45,7 @@ namespace Common { class File; + class MacResManager; } namespace Graphics { @@ -79,6 +80,12 @@ public: uint32 getFrameCount() const; /** + * Load a video file + * @param filename the filename to load + */ + bool loadFile(const Common::String &filename); + + /** * Load a QuickTime video file from a SeekableReadStream * @param stream the stream to load */ @@ -221,7 +228,6 @@ protected: uint32 _duration; uint32 _mdatOffset; uint32 _mdatSize; - uint32 _next_chunk_offset; MOVStreamContext *_partial; uint32 _numStreams; int _ni; @@ -230,6 +236,7 @@ protected: byte _palette[256 * 3]; bool _dirtyPalette; uint32 _beginOffset; + Common::MacResManager *_resFork; void initParseTable(); Audio::AudioStream *createAudioStream(Common::SeekableReadStream *stream); @@ -238,6 +245,7 @@ protected: uint32 getFrameDuration(); uint32 getCodecTag(); byte getBitsPerPixel(); + void init(); Audio::QueuingAudioStream *_audStream; void startAudio(); |