Referencia Zigmedia-core: motor de medios

media-core/container/frame_info.zig

Declaraciones públicas de media-core/container/frame_info.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.

Facts read from one compressed audio frame: how many samples it decodes styx:parser (dec-0117 §6: S3/S4 apply — untrusted media bytes). to (packet durations when the container declares none) and the AC-3 / E-AC-3 configuration an ISOBMFF sample entry needs (dac3 / dec3, which Matroska does not store: it only exists in the bitstream).

Every reader takes untrusted bytes and returns null when they do not parse; nothing here panics or indexes out of bounds.

frame_info.samplesPerFrame

fn · línea 19

pub fn samplesPerFrame(s: *const facts.StreamInfo, frame: []const u8) ?u32

Samples one frame decodes to, at the stream's sample rate; null when it cannot be told from the first bytes.

frame_info.Ac3Header

type · línea 129

pub const Ac3Header = struct

Sin ///.

frame_info.ac3Header

fn · línea 139

pub fn ac3Header(frame: []const u8) ?Ac3Header

ATSC A/52 §5.3 syncinfo + bsi (the fields dac3 carries).

frame_info.dac3

fn · línea 164

pub fn dac3(h: Ac3Header) [3]u8

dac3 payload (ETSI TS 102 366 Annex F.4), 3 bytes.

frame_info.Eac3Header

type · línea 172

pub const Eac3Header = struct

Sin ///.

frame_info.eac3Header

fn · línea 191

pub fn eac3Header(frame: []const u8) ?Eac3Header

ETSI TS 102 366 Annex E.1.2 (bsi of an E-AC-3 syncframe).

frame_info.dec3

fn · línea 282

pub fn dec3(packet: []const u8, out: *[16]u8) ?[]const u8

dec3 payload (ETSI TS 102 366 Annex F.6) for the independent substream 0 of packet plus the dependent substreams that follow it in the packet. Writes into out and returns the used prefix.