Expand description
Encodes animated thumbnails.
A picture that carries a frame sequence can answer a request for an animated thumbnail with the frames themselves rather than one of them. The three containers MSC2705 names each hold a sequence differently, so each has its own decoder here, and all of them produce a GIF, which is the one animated format this build can encode.
The caps that bound the work live here rather than at either call site, so a source reaches no decoder before what it would cost is known.
StructsΒ§
- Output π
ConstantsΒ§
- ANIMATED_
NAME π - GIF_
SPEED π - Quantization effort the GIF encoder spends per frame.
FunctionsΒ§
- canvas_
pixels π - Pixels one composited frame of this source occupies.
- decoder_
limits π - Creates decoder limits from the configured pixel budget.
- encode_
frames π - Encode a pictureβs frames as a GIF scaled to these dimensions.
- encode_
sequence π - Encodes a bounded frame sequence into one GIF buffer.
- gif_
frames π - Builds a bounded GIF frame iterator.
- png_
frames π - Builds a bounded APNG frame iterator.
- source_
frames π - The frame sequence a picture carries, and what one frame of it costs.
- webp_
frames π - Builds a bounded WebP frame iterator.