A decoded PNG: palette indices for indexed files, RGBA otherwise. More...
#include <indexed_png.h>
Public Attributes | |
| int | width = 0 |
| int | height = 0 |
| bool | indexed = false |
| std::vector< uint8_t > | indices |
| std::vector< std::array< uint8_t, 4 > > | palette |
| std::vector< uint8_t > | rgba |
A decoded PNG: palette indices for indexed files, RGBA otherwise.
Indexed PNGs (color type 3, bit depth 1/2/4/8) keep their palette and per-pixel indices, so art drawn with an 8-color palette round-trips index for index. 8-bit grayscale, gray+alpha, RGB and RGBA PNGs decode to RGBA. 16-bit and interlaced PNGs are rejected.
Definition at line 21 of file indexed_png.h.
| int yaze::util::PngImage::width = 0 |
Definition at line 22 of file indexed_png.h.
Referenced by yaze::util::DecodePng(), yaze::zelda3::ImportRoomBackgroundPng(), yaze::zelda3::ImportSheetBlocksPng(), and yaze::editor::MapClipboardPng().
| int yaze::util::PngImage::height = 0 |
Definition at line 23 of file indexed_png.h.
Referenced by yaze::util::DecodePng(), yaze::zelda3::ImportRoomBackgroundPng(), yaze::zelda3::ImportSheetBlocksPng(), and yaze::editor::MapClipboardPng().
| bool yaze::util::PngImage::indexed = false |
Definition at line 24 of file indexed_png.h.
Referenced by yaze::util::DecodePng(), yaze::zelda3::ImportRoomBackgroundPng(), yaze::zelda3::ImportSheetBlocksPng(), and yaze::editor::MapClipboardPng().
| std::vector<uint8_t> yaze::util::PngImage::indices |
Definition at line 26 of file indexed_png.h.
Referenced by yaze::util::DecodePng(), yaze::zelda3::ImportRoomBackgroundPng(), yaze::zelda3::ImportSheetBlocksPng(), and yaze::editor::MapClipboardPng().
| std::vector<std::array<uint8_t, 4> > yaze::util::PngImage::palette |
Definition at line 28 of file indexed_png.h.
Referenced by yaze::util::DecodePng(), yaze::zelda3::ImportRoomBackgroundPng(), and yaze::editor::MapClipboardPng().
| std::vector<uint8_t> yaze::util::PngImage::rgba |
Definition at line 30 of file indexed_png.h.
Referenced by yaze::util::DecodePng(), yaze::zelda3::ImportRoomBackgroundPng(), yaze::zelda3::ImportSheetBlocksPng(), and yaze::editor::MapClipboardPng().