Donner SVG 0.8.0
0.8.0 ยท ebf353960.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
GifEncoder.h File Reference
#include <cstddef>
#include <cstdint>
#include <iosfwd>
#include <optional>
#include <span>
#include <vector>
Include dependency graph for GifEncoder.h:

Classes

class  donner::svg::GifEncoder
 Incremental in-memory encoder for looping animated GIF89a images. More...
struct  donner::svg::GifEncoder::Rgb
 An opaque 8-bit sRGB color. More...
struct  donner::svg::GifEncoder::Options
 Encoder configuration. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::svg
 Donner SVG library, which can load, manipulate and render SVG files.

Functions

std::ostream & donner::svg::operator<< (std::ostream &out, GifEncoder::Error error)
 Ostream operator for GifEncoder::Error.

Class Documentation

◆ donner::svg::GifEncoder::Options

struct donner::svg::GifEncoder::Options

Encoder configuration.

Class Members
optional< Rgb > background If set, frames are composited over this color and the GIF is fully opaque.

If unset, the GIF keeps binary transparency: pixels with alpha below 128 become transparent and the rest keep their color with alpha discarded.

int height = 0 Image height in pixels, in [1, 65535].
uint16_t loopCount = 0 Number of times to repeat the animation after the first play; 0 loops forever.
size_t maximumOutputBytes = kMaximumOutputBytes Retained-output limit.

Callers may lower the hard limit for a smaller resource envelope; zero or a value above kMaximumOutputBytes is invalid.

size_t maximumWorkspaceBytes = kMaximumWorkspaceBytes Encoder-workspace limit.

Callers may lower the hard limit for a smaller resource envelope; zero or a value above kMaximumWorkspaceBytes is invalid.

int width = 0 Image width in pixels, in [1, 65535].