Added an MmapFile helper and changed iffexplore and treexplore to use it. WIP: MveDecoder Misc. changes/fixes
34 lines
559 B
C++
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
|