Referencia Zigmedia-core: motor de medios

media-core/container/probe.zig

Declaraciones públicas de media-core/container/probe.zig (media-core: motor de medios).

ImplementadoSin versión del tren todavía· generada desde apps/docs/generated/zig/media-engine.json

Página generada desde native/zig/media-core/media_engine.zig. No se edita a mano: bun run docs:gen la regenera y bun run docs:check falla si difiere.

Container facts entry point: detects the container from its first bytes styx:parser (dec-0117 §6: S3/S4 apply — untrusted media bytes). and delegates to the parser. Returns a ContainerInfo that owns its arena.

container.Options

type · línea 15

pub const Options = struct

Sin ///.

container.Format

type · línea 23

pub const Format = enum

Sin ///.

container.sniff

fn · línea 26

pub fn sniff(head: []const u8) ?Format

Sniffs the container from the first 8 bytes; null if unsupported.

container.probe

fn · línea 34

pub fn probe(allocator: std.mem.Allocator, source: ByteSource, opts: Options) Error!ContainerInfo

Sin ///.

container.Layout

type · línea 39

pub const Layout = union

Container layout for a demuxer, next to the facts (it lives in the facts arena).

container.Opened

type · línea 44

pub const Opened = struct

Sin ///.

container.open

fn · línea 50

pub fn open(allocator: std.mem.Allocator, source: ByteSource, opts: Options) Error!Opened

Facts plus the layout a demuxer needs, in one pass over the headers.