Expand description
Stream metadata shared between containers and codecs.
Structs§
- CodecId
- A stable identifier for a codec. Codec crates register a
CodecIdso the codec registry can look them up by name. - Codec
Parameters - Codec-level parameters shared between demuxer/muxer and en/decoder.
- Null
Codec Resolver - 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). - Probe
Context - Context passed to a codec’s probe function during tag resolution.
- Stream
Info - Description of a single stream inside a container.
Enums§
- Codec
Tag - A codec identifier scoped to a container format — the thing a
demuxer reads out of the file to name a codec. Resolved to a
CodecIdby the codec registry.
Traits§
- Codec
Resolver - Resolve a
CodecTag(FourCC / WAVEFORMATEX / Matroska id / …) to aCodecId. Theoxideav-codecregistry implements this, but defining the trait here lets containers consume tag resolution via&dyn CodecResolverwithout pulling in the codec crate as a direct dependency.
Type Aliases§
- Confidence
- Confidence value returned by a probe.
1.0means “certainly me”,0.0means “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 return0.0. - ProbeFn
- A probe function a codec attaches to its registration to
disambiguate tag collisions. Called once per candidate
registration during
resolve_tag.