lsnes rr2-β24
[lsnes.git] / src / emulation / sky / image.hpp
blobfe1523a41e85af08f7f6f2ef7c954bd18dd18bd6
1 #ifndef _skycore__image__hpp__included__
2 #define _skycore__image__hpp__included__
4 #include <cstdint>
5 #include <iostream>
6 #include <cstring>
7 #include <stdexcept>
8 #include <vector>
10 namespace sky
12 struct image
14 image();
15 image(const std::vector<char>& data);
16 uint16_t width;
17 uint16_t height;
18 unsigned colors;
19 uint16_t unknown1;
20 std::vector<uint8_t> decode;
21 uint32_t operator[](size_t ptr) { return palette[decode[ptr]]; }
22 uint32_t palette[256];
23 uint8_t unknown2[512];
27 #endif