pub struct FrameStamp {
pub source_id: SourceId,
pub frame_index: u64,
pub pts: MediaTime,
pub wall_clock_ns: Option<i64>,
}Expand description
Temporal and source identity of a single frame sample.
Fields§
§source_id: SourceIdMedia source that produced the frame.
frame_index: u64Zero-based frame index within the source timeline.
pts: MediaTimePresentation timestamp for the frame.
wall_clock_ns: Option<i64>Optional host wall-clock capture time in nanoseconds since the Unix epoch.
Implementations§
Trait Implementations§
Source§impl Clone for FrameStamp
impl Clone for FrameStamp
Source§fn clone(&self) -> FrameStamp
fn clone(&self) -> FrameStamp
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FrameStamp
Source§impl Debug for FrameStamp
impl Debug for FrameStamp
Source§impl PartialEq for FrameStamp
impl PartialEq for FrameStamp
impl StructuralPartialEq for FrameStamp
Auto Trait Implementations§
impl Freeze for FrameStamp
impl RefUnwindSafe for FrameStamp
impl Send for FrameStamp
impl Sync for FrameStamp
impl Unpin for FrameStamp
impl UnsafeUnpin for FrameStamp
impl UnwindSafe for FrameStamp
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