Haio 0.2.X
Homebrew Asset IO/CDN
Loading...
Searching...
No Matches
haio_palette.hpp File Reference
#include "haio_codec.hpp"
#include <span>
#include <string_view>
Include dependency graph for haio_palette.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  Haio

Enumerations

enum class  Haio::Dither { Haio::Nearest , Haio::Bayer , Haio::Floyd , Haio::Strict }
enum class  Haio::Limit { Haio::Sort , Haio::Spread }

Functions

Result< std::vector< uint32_t > > Haio::paletteNamed (std::string_view spec, size_t wanted)
std::span< const std::string_view > Haio::paletteNames ()
std::optional< Dither > Haio::ditherNamed (std::string_view name)
Result< Image< Color::PALETTE > > Haio::toPalette (const Image< Color::RGBA8888 > &image, std::vector< uint32_t > entries, Dither how)
std::optional< Limit > Haio::limitNamed (std::string_view name)
Result< std::vector< uint32_t > > Haio::limitPalette (const Image< Color::RGBA8888 > &image, std::vector< uint32_t > entries, size_t most, Limit how)