pub struct Frame<'a> {
pub data: &'a [u8],
pub is_keyframe: bool,
pub is_invisible: bool,
pub is_discardable: bool,
pub track_number: u64,
pub timestamp: i64,
pub duration: Option<NonZero<u64>>,
}Expand description
A Matroska encoded frame.
Fields§
§data: &'a [u8]in matroska timestamp units
is_keyframe: boolwhether the frame is a keyframe
is_invisible: boolwhether the frame is invisible (mostly for subtitle tracks)
is_discardable: boolwhether the frame is discardable (for video tracks, e.g. non-reference frames)
track_number: u64track number the frame belongs to
timestamp: i64timestamp of the frame, in the same timescale as the Cluster timestamp
duration: Option<NonZero<u64>>duration of the frame, in the same timescale as the Cluster timestamp
Auto Trait Implementations§
impl<'a> Freeze for Frame<'a>
impl<'a> RefUnwindSafe for Frame<'a>
impl<'a> Send for Frame<'a>
impl<'a> Sync for Frame<'a>
impl<'a> Unpin for Frame<'a>
impl<'a> UnwindSafe for Frame<'a>
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