pub struct WebmFrame<'a> {
pub data: &'a [u8],
pub alpha: Option<&'a [u8]>,
pub timecode: u64,
pub keyframe: bool,
}Expand description
One coded frame to place in the stream.
Fields§
§data: &'a [u8]The codec bitstream for this frame (a VP9 super-frame, VP8 frame, …).
alpha: Option<&'a [u8]>Optional alpha-channel VP9 bitstream (BlockAdditional, BlockAddID = 1).
timecode: u64Presentation time in TimecodeScale ticks from the start of the segment.
keyframe: boolWhether this frame is a keyframe (sets the Block / SimpleBlock keyframe flag).
Auto Trait Implementations§
impl<'a> Freeze for WebmFrame<'a>
impl<'a> RefUnwindSafe for WebmFrame<'a>
impl<'a> Send for WebmFrame<'a>
impl<'a> Sync for WebmFrame<'a>
impl<'a> Unpin for WebmFrame<'a>
impl<'a> UnsafeUnpin for WebmFrame<'a>
impl<'a> UnwindSafe for WebmFrame<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more