Declaraciones públicas de transmux/cmaf_check.zig (transmux).
apps/docs/generated/zig/transmux.jsonPágina generada desde
native/zig/transmux/transmux.zig. No se edita a mano:bun run docs:genla regenera ybun run docs:checkfalla si difiere.
Structural reader/validator of CMAF output (init segment + fragments), styx:parser (dec-0117 §6: S3/S4 apply — it reads muxer output as a player would, bytes it must not trust). used to compare what the two engines produce at fragment level (tfdt, trun entries, per-track payload hash) and to reject structurally invalid output. It parses what a player parses; it does not trust the muxer's own bookkeeping.
Checked (ISO/IEC 14496-12 + ISO/IEC 23000-19):
ftyp first, then moov with mvex/trex for every trak
and no samples in the trak tables.moof (mfhd, trafs with tfhd default-base-is-moof,
tfdt, trun with data_offset) then one mdat; every sample range
inside the mdat payload, ranges not overlapping and covering it.cmaf_check.Errorconst · línea 17
pub const Error = error{ Invalid, OutOfMemory }Sin ///.
cmaf_check.Defaultstype · línea 19
pub const Defaults = structSin ///.
cmaf_check.InitInfotype · línea 21
pub const InitInfo = structSin ///.
cmaf_check.Sampletype · línea 39
pub const Sample = structSin ///.
cmaf_check.Sample.isSyncfn · línea 45
pub fn isSync(self: Sample) boolSin ///.
cmaf_check.TrackFragmenttype · línea 50
pub const TrackFragment = structSin ///.
cmaf_check.Fragmenttype · línea 59
pub const Fragment = structSin ///.
cmaf_check.Fragment.deinitfn · línea 63
pub fn deinit(self: *Fragment, gpa: std.mem.Allocator) voidSin ///.
cmaf_check.checkInitfn · línea 118
pub fn checkInit(init: []const u8) Error!InitInfoSin ///.
cmaf_check.checkFragmentfn · línea 173
pub fn checkFragment(gpa: std.mem.Allocator, frag: []const u8, init: *const InitInfo) Error!FragmentParses and validates one moof+mdat, resolving sample fields through
trun -> tfhd defaults -> trex defaults (from init). The caller
owns the result.
cmaf_check.Verdicttype · línea 274
pub const Verdict = enumHow two engines' versions of the same fragment compare.
cmaf_check.Classifiedtype · línea 292
pub const Classified = structSin ///.
cmaf_check.classifyfn · línea 294
pub fn classify(a: *const Fragment, b: *const Fragment) ClassifiedSin ///.