Skip to documentation
SLOP

tiny.gif.bytesFromAnimation

Reference tiny.gif bytesFromAnimation

Defined in tiny.gif.

Called byCallsprivate sourcelib.gif.src.encode.test.TestEncodeinittest sourcelib.gif.src.encode.testtest: Activated GIF encode storage pe...test sourcelib.gif.src.encode.testtest: GIF encode rejects changed inpu...test sourcelib.gif.src.encode.testtest: GIF encode storage rejects conc...test sourcelib.gif.src.encode.testtest: encoding allocation baseline+2 moreprivate sourcelib.gif.src.encode.writewriteFrameprivate sourcelib.gif.src.encode.writewriteHeaderprivate sourcelib.trace.src.profiling.storageresettiny.gifbytesFromAnimation
Static calls · unresolved targets: 0 · external targets: 2.

Source

Source: lib/gif/src/encode/write.zig:13

zig
pub fn bytesFromAnimation(storage: *Storage, animation: AnimationView) Error![]const u8 {    const regions = try storage.acquire(animation);    errdefer storage.reset();    var writer = Writer{ .output = regions.output };    const plan = &storage.capacity.plan;    try writeHeader(&writer, plan, animation.loop_count);    for (animation.frames) |frame| {        try writeFrame(            &writer,            plan,            frame,            regions.compressed,            regions.dictionary,        );    }    try writer.byte(0x3b);    if (writer.index != storage.capacity.plan.output_bytes) return error.EncodeInputMismatch;    return regions.output[0..writer.index];}

Source: lib/gif/src/root.zig:37

zig
pub const bytesFromAnimation = encode.bytesFromAnimation;

Complete caller list

7 direct callers.

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433