Definition assetimport.h:11
std::optional< std::vector< std::uint8_t > > EncodeRgba8Png(std::span< const std::uint8_t > rgba, int width, int height)
Encode 8-bit RGBA texels as a PNG image in memory.
bool 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 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.
std::optional< std::vector< std::uint8_t > > 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.
bool 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.