#[non_exhaustive]pub enum Frame {
Audio(AudioFrame),
Video(VideoFrame),
Subtitle(SubtitleCue),
Vector(VectorFrame),
}Expand description
A decoded chunk of uncompressed data: either audio samples, a video picture, or (for subtitle streams) a single styled cue.
Marked #[non_exhaustive] — consumers that match on variants must
include a wildcard arm. This lets the crate add new frame kinds (data
tracks, hap rops, …) without breaking downstream code.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Audio(AudioFrame)
Uncompressed audio samples.
Video(VideoFrame)
One uncompressed video picture.
Subtitle(SubtitleCue)
A single subtitle cue. Timing is carried inside the cue itself
(start_us/end_us) so it’s independent of container time bases,
but the enclosing pipeline/muxer can still rescale via pts at
the packet layer.
Vector(VectorFrame)
A resolution-independent vector-graphics frame. Produced by
vector-format decoders (oxideav-svg, the vector path of
oxideav-pdf) and consumed by vector renderers / writers.
See crate::vector for the full primitive set.