Struct retina::Timestamp [−][src]
pub struct Timestamp { /* fields omitted */ }
Expand description
A monotonically increasing timestamp within an RTP stream.
The Display and Debug implementations display:
- the bottom 32 bits, as seen in RTP packet headers. This advances at a codec-specified clock rate.
- the full timestamp, with top bits accumulated as RTP packet timestamps wrap around.
- a conversion to RTSP “normal play time” (NPT): zero-based and normalized to seconds.
Implementations
Creates a new timestamp unless timestamp - start
underflows.
Returns time since some arbitrary point before the stream started.
Returns codec-specified clock rate, in Hz.
Returns elapsed time since the stream start in seconds, aka “normal play time” (NPT).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Timestamp
impl UnwindSafe for Timestamp
Blanket Implementations
Mutably borrows from an owned value. Read more