aboutsummaryrefslogtreecommitdiff
path: root/graphics/video/qt_decoder.h
diff options
context:
space:
mode:
authorMatthew Hoops2010-05-23 23:26:28 +0000
committerMatthew Hoops2010-05-23 23:26:28 +0000
commit8f14c15b1afc51a860d7fae28a59cbcd4d7d4d04 (patch)
tree0cbd344af6dbce6450bfba1a9d061558c4348853 /graphics/video/qt_decoder.h
parentb3bd797e019c20de1d4bfdac131e6e3e2c45860a (diff)
downloadscummvm-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.h10
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();