diff options
author | Strangerke | 2014-02-14 01:17:34 +0100 |
---|---|---|
committer | Strangerke | 2014-02-14 01:17:34 +0100 |
commit | 2a97f13c0e59f92b080cce21df3756c778eb6a72 (patch) | |
tree | 6f77799d7b643b90e567eb3b665c021ca696e1c3 | |
parent | 013522457ca3fd84d4c9575d9bc20b6a875b09a3 (diff) | |
download | scummvm-rg350-2a97f13c0e59f92b080cce21df3756c778eb6a72.tar.gz scummvm-rg350-2a97f13c0e59f92b080cce21df3756c778eb6a72.tar.bz2 scummvm-rg350-2a97f13c0e59f92b080cce21df3756c778eb6a72.zip |
VOYEUR: Set private some variables and functions
-rw-r--r-- | engines/voyeur/animation.h | 59 |
1 files changed, 32 insertions, 27 deletions
diff --git a/engines/voyeur/animation.h b/engines/voyeur/animation.h index 96c283510e..35199f6b93 100644 --- a/engines/voyeur/animation.h +++ b/engines/voyeur/animation.h @@ -47,28 +47,32 @@ class RL2Decoder : public Video::VideoDecoder { private: class RL2FileHeader { public: - uint32 _form; - uint32 _backSize; - uint32 _signature; - uint32 _dataSize; + RL2FileHeader(); + ~RL2FileHeader(); + + int _channels; + int _colorCount; int _numFrames; - int _method; - int _soundRate; int _rate; - int _channels; - int _defSoundSize; + int _soundRate; int _videoBase; - int _colorCount; - byte _palette[768]; + int *_frameSoundSizes; + uint32 _backSize; + uint32 _signature; uint32 *_frameOffsets; - int *_frameSoundSizes; - public: - RL2FileHeader(); - ~RL2FileHeader(); + + byte _palette[768]; + void load(Common::SeekableReadStream *stream); - bool isValid() const; Common::Rational getFrameRate() const; + bool isValid() const; + + private: + uint32 _form; + uint32 _dataSize; + int _method; + int _defSoundSize; }; class SoundFrame { @@ -155,26 +159,25 @@ private: int _paletteStart; Common::Array<SoundFrame> _soundFrames; int _soundFrameNumber; + const Common::List<Common::Rect> *getDirtyRects() const; + + void clearDirtyRects(); + void copyDirtyRectsToBuffer(uint8 *dst, uint pitch); + int getPaletteStart() const { return _paletteStart; } + const RL2FileHeader &getHeader() { return _header; } + virtual void readNextPacket(); + virtual bool seekIntern(const Audio::Timestamp &time); + public: RL2Decoder(Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType); virtual ~RL2Decoder(); + virtual void close(); + bool loadStream(Common::SeekableReadStream *stream); bool loadFile(const Common::String &file, bool palFlag = false); bool loadVideo(int videoId); - - virtual void readNextPacket(); - virtual void close(); - virtual bool seekIntern(const Audio::Timestamp &time); - - const Common::List<Common::Rect> *getDirtyRects() const; - void clearDirtyRects(); - void copyDirtyRectsToBuffer(uint8 *dst, uint pitch); - RL2VideoTrack *getVideoTrack() { return _videoTrack; } - RL2AudioTrack *getAudioTrack() { return _audioTrack; } - int getPaletteStart() const { return _paletteStart; } int getPaletteCount() const { return _header._colorCount; } - const RL2FileHeader &getHeader() { return _header; } /** * Play back a given Voyeur RL2 video @@ -184,6 +187,8 @@ public: * @param imgPos Position to draw image data */ void play(VoyeurEngine *vm, int resourceOffset = 0, byte *frames = NULL, byte *imgPos = NULL); + RL2VideoTrack *getVideoTrack() { return _videoTrack; } + RL2AudioTrack *getAudioTrack() { return _audioTrack; } }; } // End of namespace Voyeur |