Files
wc3re/MveDecoder.hh
Matthias Blankertz ae51cd24c4 MmapFile helper; MveDecoder WIP
Added an MmapFile helper and changed iffexplore and treexplore to use it.
WIP: MveDecoder
Misc. changes/fixes
2015-04-24 22:13:32 +02:00

34 lines
559 B
C++

#ifndef WC3RE_MVEDECODER_HH__
#define WC3RE_MVEDECODER_HH__
#include <vector>
#include <array>
#include "IffFile.hh"
class MveDecoder {
public:
MveDecoder(char const* base, size_t length);
private:
IffFile iff_;
using Palette = std::array<uint8_t, 768>;
struct Frame {
};
struct Shot {
Palette const& palt;
std::vector<IffFile::Object const*> AUDIs;
std::vector<Frame> VGAs;
};
std::vector<Shot> shots_;
std::vector<Palette> palts_;
static Frame parseVGA(IffFile::Object const& vga, Frame const* prev);
};
#endif