72 StreamPtr stream =
nullptr;
74 std::vector<uint32_t> framePointers;
75 std::vector<FrameHeader> frameHeaders;
77 bool extractHeaders();
91 const Header& getHeader()
const {
return header; }
92 const std::vector<FrameHeader>& getFrameHeaders()
const {
return frameHeaders; }
104 void exportToPPM(
const char* ppmFilenameBase,
const Palette& palette)
const;
Used internally by the game for 24 to 8 bits per color conversion.
std::vector< uint8_t > decompressFrame(size_t frameNumber) const
Decompress the given frame.
void reset()
Resets the decoder and frees resources.
bool initDecoder(StreamPtr &&streamPtr)
Start decoding the stream and preparing data.
Decoder for the DC6 image format.
bool decompressFrameIn(size_t frameNumber, uint8_t *data) const
Same as decompressFrame but will output the data in a given buffer.
Used by the game to know if the file was loaded in the renderer.