yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
pixel_clipboard.h File Reference
#include <array>
#include <cstdint>
#include <string>
#include <vector>
#include "absl/status/statusor.h"
This graph shows which files directly or indirectly include this file:

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".