#include <array>#include <cstdint>#include <string>#include <vector>#include "absl/status/statusor.h"Go to the source code of this file.
Classes | |
| struct | yaze::editor::ClipboardPaste |
| A clipboard PNG mapped onto a sheet's colors. More... | |
Namespaces | |
| namespace | yaze |
| namespace | yaze::editor |
| Editors are the view controllers for the application. | |
Typedefs | |
| using | yaze::editor::SheetColors = std::array<std::array<uint8_t, 3>, 8> |
| The 8 colors a 3bpp sheet shows (index 0 is transparent in game). | |
Functions | |
| absl::StatusOr< std::vector< uint8_t > > | yaze::editor::EncodeClipboardPng (const std::vector< uint8_t > &indices, int width, int height, const SheetColors &colors) |
| absl::StatusOr< ClipboardPaste > | yaze::editor::MapClipboardPng (const std::vector< uint8_t > &png_bytes, const SheetColors &colors, int max_width, int max_height) |
| std::string | yaze::editor::DescribeClipboardPaste (const ClipboardPaste &paste) |
| "16x16: 200 kept" / "16x8: 90 exact, 38 remapped, 4 above color 7". | |