GIF writer. More...
#include <image_codecs.hpp>
Static Public Member Functions | |
| static std::vector< uint8_t > | encode_still (const DecodedRaster &raster) |
| Encode the raster as a standalone GIF89a file. | |
GIF writer.
Encodes a single still frame as GIF89a with a global color table built via median-cut quantisation. Useful for editor exports and tests; runtime callers that want animation should compose multiple frames via a higher-level helper (not provided here).
|
static |
Encode the raster as a standalone GIF89a file.
Returns the encoded bytes; empty vector on failure (zero width/height or pixel count mismatch).