pub struct VideoPacket { /* private fields */ }Expand description
One owned compressed video access unit in the selected track time base.
Implementations§
Source§impl VideoPacket
impl VideoPacket
Sourcepub const fn presentation_timestamp(&self) -> u64
pub const fn presentation_timestamp(&self) -> u64
Return the presentation timestamp in track time-base ticks.
Sourcepub const fn decode_timestamp(&self) -> u64
pub const fn decode_timestamp(&self) -> u64
Return the decode timestamp in track time-base ticks.
Sourcepub const fn is_keyframe(&self) -> bool
pub const fn is_keyframe(&self) -> bool
Return whether this sample is a random-access point.
Trait Implementations§
Source§impl Clone for VideoPacket
impl Clone for VideoPacket
Source§impl Debug for VideoPacket
impl Debug for VideoPacket
impl Eq for VideoPacket
Source§impl PartialEq for VideoPacket
impl PartialEq for VideoPacket
impl StructuralPartialEq for VideoPacket
Auto Trait Implementations§
impl Forget for VideoPacket
impl Freeze for VideoPacket
impl Move for VideoPacket
impl RefUnwindSafe for VideoPacket
impl Send for VideoPacket
impl Sync for VideoPacket
impl Unpin for VideoPacket
impl UnsafeUnpin for VideoPacket
impl UnwindSafe for VideoPacket
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