diff options
author | Matthew Hoops | 2011-06-02 18:40:49 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-06-02 23:44:40 -0400 |
commit | 2e066816983935b8e365fc555f953bdce9f64e46 (patch) | |
tree | 08760ac1ed5e7d1754792d8353e0fff19704f42d /video/qt_decoder.h | |
parent | 717248e1625bc42fc7f777ca9d3029f6ef8978e6 (diff) | |
download | scummvm-rg350-2e066816983935b8e365fc555f953bdce9f64e46.tar.gz scummvm-rg350-2e066816983935b8e365fc555f953bdce9f64e46.tar.bz2 scummvm-rg350-2e066816983935b8e365fc555f953bdce9f64e46.zip |
COMMON: Begin objectifying QuickTimeParser::SampleDesc further
This is preparation for multiple video and audio tracks
Diffstat (limited to 'video/qt_decoder.h')
-rw-r--r-- | video/qt_decoder.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/video/qt_decoder.h b/video/qt_decoder.h index d8beda0f83..e3955d7d3b 100644 --- a/video/qt_decoder.h +++ b/video/qt_decoder.h @@ -114,14 +114,19 @@ public: uint32 getDuration() const { return _duration * 1000 / _timeScale; } protected: - struct VideoSampleDesc : public Common::QuickTimeParser::SampleDesc { - VideoSampleDesc(); + class VideoSampleDesc : public Common::QuickTimeParser::SampleDesc { + public: + VideoSampleDesc(Common::QuickTimeParser::MOVStreamContext *parentStream, uint32 codecTag); ~VideoSampleDesc(); - char codecName[32]; - uint16 colorTableId; - byte *palette; - Codec *videoCodec; + void initCodec(); + + // TODO: Make private in the long run + uint16 _bitsPerSample; + char _codecName[32]; + uint16 _colorTableId; + byte *_palette; + Codec *_videoCodec; }; Common::QuickTimeParser::SampleDesc *readSampleDesc(MOVStreamContext *st, uint32 format); |