oa::media::MediaTimestamp

Non-negative position on a media session’s zero-based microsecond timeline.

StRust public API

Declaration

pub struct MediaTimestamp(/* private fields */);
Public Rust declaration.

Public Methods

pub const fn as_microseconds(self) -> u64
pub fn has_reached(self, boundary: Duration) -> bool
pub fn frame_is_due(self, timing: VideoFrameTiming) -> Result<bool>
pub fn to_video_ticks(self, base: VideoTimeBase) -> Result<u64>
fn clone(&self) -> MediaTimestamp
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn cmp(&self, other: &MediaTimestamp) -> Ordering
fn eq(&self, other: &MediaTimestamp) -> bool
fn partial_cmp(&self, other: &MediaTimestamp) -> Option<Ordering>

Associated Functions

pub const fn from_microseconds(value: u64) -> Self
fn default() -> MediaTimestamp

Public Method Documentation

pub const fn as_microseconds( self ) -> u64
Whether an absolute presentation boundary has been reached.
pub fn has_reached( self, boundary: Duration ) -> bool
No public source comment is attached to this declaration.
pub fn frame_is_due( self, timing: VideoFrameTiming ) -> Result<bool>
No public source comment is attached to this declaration.
pub fn to_video_ticks( self, base: VideoTimeBase ) -> Result<u64>
No public source comment is attached to this declaration.
fn clone( &self ) -> MediaTimestamp
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 cmp( &self, other: &MediaTimestamp ) -> Ordering
No public source comment is attached to this declaration.
fn eq( &self, other: &MediaTimestamp ) -> bool
No public source comment is attached to this declaration.
fn partial_cmp( &self, other: &MediaTimestamp ) -> Option<Ordering>
No public source comment is attached to this declaration.
pub const fn from_microseconds( value: u64 ) -> Self
Whether an absolute presentation boundary has been reached.
fn default() -> MediaTimestamp
No public source comment is attached to this declaration.