Skip to main content

Module stream

Module stream 

Source
Expand description

Stream metadata shared between containers and codecs.

Structs§

CodecId
A stable identifier for a codec. Codec crates register a CodecId so the codec registry can look them up by name.
CodecParameters
Codec-level parameters shared between demuxer/muxer and en/decoder.
NullCodecResolver
Null resolver that resolves nothing — useful as a default when a caller doesn’t have a real registry handy (e.g. unit tests, or legacy callers of the tag-free open() APIs).
ProbeContext
Context passed to a codec’s probe function during tag resolution.
StreamInfo
Description of a single stream inside a container.

Enums§

CodecTag
A codec identifier scoped to a container format — the thing a demuxer reads out of the file to name a codec. Resolved to a CodecId by the codec registry.

Traits§

CodecResolver
Resolve a CodecTag (FourCC / WAVEFORMATEX / Matroska id / …) to a CodecId. The oxideav-codec registry implements this, but defining the trait here lets containers consume tag resolution via &dyn CodecResolver without pulling in the codec crate as a direct dependency.

Type Aliases§

Confidence
Confidence value returned by a probe. 1.0 means “certainly me”, 0.0 means “not me”, values in between mean “partial evidence — if no higher-confidence claim exists, this should win”. The registry picks the claim with the highest returned confidence and skips any that return 0.0.
ProbeFn
A probe function a codec attaches to its registration to disambiguate tag collisions. Called once per candidate registration during resolve_tag.