Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::GifWriter Class Reference

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.

Detailed Description

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).

Member Function Documentation

◆ encode_still()

std::vector< uint8_t > pulp::canvas::GifWriter::encode_still ( const DecodedRaster & raster)
static

Encode the raster as a standalone GIF89a file.

Returns the encoded bytes; empty vector on failure (zero width/height or pixel count mismatch).


The documentation for this class was generated from the following file: