diff options
author | Filippos Karapetis | 2016-09-21 00:50:53 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-10-03 00:33:41 +0300 |
commit | f017940ca08e32a206982376df0bdc334acdea55 (patch) | |
tree | ef91dae06046b3379be120ed6d22e81c7b415488 /engines/chewy/resource.h | |
parent | b60f5023ed8959798b6246e227717cc0ff1e8d44 (diff) | |
download | scummvm-rg350-f017940ca08e32a206982376df0bdc334acdea55.tar.gz scummvm-rg350-f017940ca08e32a206982376df0bdc334acdea55.tar.bz2 scummvm-rg350-f017940ca08e32a206982376df0bdc334acdea55.zip |
CHEWY: Initial work on game videos
Diffstat (limited to 'engines/chewy/resource.h')
-rw-r--r-- | engines/chewy/resource.h | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/engines/chewy/resource.h b/engines/chewy/resource.h index cfaa802834..238f0f2b60 100644 --- a/engines/chewy/resource.h +++ b/engines/chewy/resource.h @@ -94,6 +94,17 @@ struct SoundChunk { byte *data; }; +// Video chunk header +struct VideoChunk { + // ID (CFA, followed by a zero) + uint32 size; + uint16 frameCount; + uint16 width; + uint16 height; + uint32 frameDelay; // in ms + uint32 firstFrameOffset; +}; + typedef Common::Array<Chunk> ChunkList; typedef Common::Array<TBFChunk> TBFChunkList; @@ -111,7 +122,7 @@ protected: Common::File _stream; uint16 _chunkCount; ResourceType _resType; - byte _encrypted; + bool _encrypted; ChunkList _chunkList; }; @@ -140,6 +151,14 @@ public: Common::String getText(uint num); }; +class VideoResource : public Resource { +public: + VideoResource(Common::String filename) : Resource(filename) {} + ~VideoResource() {} + + VideoChunk *getVideoHeader(uint num); +}; + } // End of namespace Chewy #endif |