oa::video::VideoFrameTiming

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.

StRust public API

Declaration

pub struct VideoFrameTiming { /* private fields */ }
Public Rust declaration.

Public Methods

pub const fn presentation_timestamp(self) -> Duration
pub const fn duration(self) -> Option<Duration>
fn clone(&self) -> VideoFrameTiming
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &VideoFrameTiming) -> bool

Associated Functions

pub fn new( presentation_timestamp: Duration, duration: Option<Duration>, ) -> Result<Self>
pub fn from_microseconds( presentation_timestamp_microseconds: u64, duration_microseconds: u64, ) -> Self

Public Method Documentation

pub const fn presentation_timestamp( self ) -> Duration
No public source comment is attached to this declaration.
pub const fn duration( self ) -> Option<Duration>
No public source comment is attached to this declaration.
fn clone( &self ) -> VideoFrameTiming
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &VideoFrameTiming ) -> bool
No public source comment is attached to this declaration.
pub fn new( presentation_timestamp: Duration, duration: Option<Duration> ) -> Result<Self>
No public source comment is attached to this declaration.
pub fn from_microseconds( presentation_timestamp_microseconds: u64, duration_microseconds: u64 ) -> Self
No public source comment is attached to this declaration.