pub struct VideoFrameTiming { /* private fields */ }Expand description
Presentation timing for one decoded, captured, or generated frame.
The presentation timestamp is a non-negative offset from a stream-defined epoch. Duration is absent when the producer cannot determine it.
Implementations§
Source§impl VideoFrameTiming
impl VideoFrameTiming
Sourcepub fn new_from_microseconds(
presentation_timestamp_microseconds: u64,
duration_microseconds: u64,
) -> Self
pub fn new_from_microseconds( presentation_timestamp_microseconds: u64, duration_microseconds: u64, ) -> Self
Construct checked microsecond timing used by OA’s current media boundary.
A zero duration_microseconds means that duration is unknown.
Sourcepub const fn presentation_timestamp(self) -> Duration
pub const fn presentation_timestamp(self) -> Duration
Return the presentation timestamp relative to the producer’s epoch.
Trait Implementations§
Source§impl Clone for VideoFrameTiming
impl Clone for VideoFrameTiming
impl Copy for VideoFrameTiming
Source§impl Debug for VideoFrameTiming
impl Debug for VideoFrameTiming
impl Eq for VideoFrameTiming
Source§impl PartialEq for VideoFrameTiming
impl PartialEq for VideoFrameTiming
impl StructuralPartialEq for VideoFrameTiming
Auto Trait Implementations§
impl Forget for VideoFrameTiming
impl Freeze for VideoFrameTiming
impl Move for VideoFrameTiming
impl RefUnwindSafe for VideoFrameTiming
impl Send for VideoFrameTiming
impl Sync for VideoFrameTiming
impl Unpin for VideoFrameTiming
impl UnsafeUnpin for VideoFrameTiming
impl UnwindSafe for VideoFrameTiming
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