#[non_exhaustive]pub enum Frame {
Audio(AudioFrame),
Video(VideoFrame),
Subtitle(SubtitleCue),
}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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Audio(AudioFrame)
Video(VideoFrame)
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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more