/* SPDX-License-Identifier: MIT */ #ifndef RGBDS_GFX_PAL_SORTING_HPP #define RGBDS_GFX_PAL_SORTING_HPP #include #include #include #include #include "gfx/rgba.hpp" struct Palette; void sortIndexed( std::vector &palettes, int palSize, png_color const *palRGB, int palAlphaSize, png_byte *palAlpha ); void sortGrayscale( std::vector &palettes, std::array, 0x8001> const &colors ); void sortRgb(std::vector &palettes); #endif // RGBDS_GFX_PAL_SORTING_HPP