#include <cstdint>
#include <filesystem>
#include <optional>
#include <span>
#include <vector>
Go to the source code of this file.
|
| bool | coastline::SaveIndexed4Png (const std::filesystem::path &path, std::span< const std::uint8_t > texels, std::span< const std::uint8_t, 32 > palette, int width, int height) |
| | Write a 4-bit colour-indexed image of the console as an indexed PNG image.
|
| bool | coastline::LoadIndexed4Png (const std::filesystem::path &path, std::span< std::uint8_t > texels, std::span< std::uint8_t, 32 > palette) |
| | Read an indexed PNG image as the 4-bit texels and the RGBA5551 palette of the console.
|
| bool | coastline::LoadIndexed4Png (std::span< const std::uint8_t > bytes, std::span< std::uint8_t > texels, std::span< std::uint8_t, 32 > palette) |
| | Read an encoded indexed PNG with the same requirements as the file overload.
|
| bool | coastline::SaveRgba8Png (const std::filesystem::path &path, std::span< const std::uint8_t > rgba, int width, int height) |
| | Write 8-bit RGBA texels as a PNG image, and read it back to check it.
|
| std::optional< std::vector< std::uint8_t > > | coastline::EncodeIndexed4Png (std::span< const std::uint8_t > texels, std::span< const std::uint8_t, 32 > palette, int width, int height) |
| | Encode a 4-bit colour-indexed image of the console as an indexed PNG image in memory.
|
| std::optional< std::vector< std::uint8_t > > | coastline::EncodeRgba8Png (std::span< const std::uint8_t > rgba, int width, int height) |
| | Encode 8-bit RGBA texels as a PNG image in memory.
|