Skip to documentation
SLOP

tiny.gif.DecodeCapacity

Reference tiny.gif DecodeCapacity

Defined in tiny.gif.

API (10)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.gifDecodeCapacity
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/gif/src/decode/capacity.zig:14

zig
pub const Capacity = struct {    plan: plan_mod.Plan,    frame_offset: usize,    frame_bytes: usize,    canvas_offset: usize,    previous_canvas_offset: usize,    indices_offset: usize,    compressed_offset: usize,    retained_rgba8_offset: usize,    storage_bytes: usize,    pub fn derive(limits: Limits) DeriveError!Capacity {        const plan = try plan_mod.Plan.inspect(limits.bytes, limits.bounds);        const frames = try placed(model.Frame, 0, plan.frames);        const canvas_offset = frames.end;        const previous_canvas_offset = try added(canvas_offset, plan.canvas_rgba8_bytes);        const indices_offset = try added(previous_canvas_offset, plan.canvas_rgba8_bytes);        const compressed_offset = try added(indices_offset, plan.frame_pixels);        const retained_rgba8_offset = try added(compressed_offset, plan.compressed_bytes);        const storage_bytes = try added(retained_rgba8_offset, plan.retained_rgba8_bytes);        return .{            .plan = plan,            .frame_offset = frames.start,            .frame_bytes = frames.bytes,            .canvas_offset = canvas_offset,            .previous_canvas_offset = previous_canvas_offset,            .indices_offset = indices_offset,            .compressed_offset = compressed_offset,            .retained_rgba8_offset = retained_rgba8_offset,            .storage_bytes = storage_bytes,        };    }};

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

zig
pub const DecodeCapacity = decode.Capacity;
Called byCallstest sourcelib.gif.src.decode.capacitytest: GIF decode capacity matches an ...private sourcelib.gif.src.decode.capacityaddedprivate sourcelib.gif.src.decode.capacityplacedDecodeCapacityderive
Static calls · unresolved targets: 0 · external targets: 1.

Audit

Definitions2
Public names2
Members9
Version26.7.0
Revisiondaab053ee433