#[non_exhaustive]pub struct Estimate {
pub jitter: Option<Duration>,
pub bitrate: Option<u64>,
pub delay: Option<Duration>,
pub framerate: Option<f64>,
}Expand description
The catalog fields a producer measures from the frames written to it.
An absent field is one to measure: whatever the config already carries when it reaches
container::Producer::set is authoritative and left alone,
and the rest is detected and kept current.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.jitter: Option<Duration>The largest batch span or reorder delay written.
bitrate: Option<u64>The maximum bitrate in bits per second.
delay: Option<Duration>How far the track reaches the transport behind the others: the least a frame’s timestamp
trailed the highest one another track had already written, over a window of a second or
more, and the largest of those windows. Lateness only some frames have, such as B-frames
written after a later reference picture, is variable and left to jitter and the
receiver’s own measurement.
Supplied as Some(Duration::ZERO), it states the track trails nothing: nothing is measured,
and the catalog omits it, as it does an absent one.
framerate: Option<f64>The maximum frame rate in frames per second, when it is a standard one.
Implementations§
Source§impl Estimate
impl Estimate
Sourcepub fn with_jitter(self, jitter: impl Into<Option<Duration>>) -> Self
pub fn with_jitter(self, jitter: impl Into<Option<Duration>>) -> Self
Set the jitter (or clear it with None).
Sourcepub fn with_bitrate(self, bitrate: impl Into<Option<u64>>) -> Self
pub fn with_bitrate(self, bitrate: impl Into<Option<u64>>) -> Self
Set the bitrate in bits per second (or clear it with None).
Sourcepub fn with_delay(self, delay: impl Into<Option<Duration>>) -> Self
pub fn with_delay(self, delay: impl Into<Option<Duration>>) -> Self
Set the delay behind the other tracks (or clear it with None).
Sourcepub fn with_framerate(self, framerate: impl Into<Option<f64>>) -> Self
pub fn with_framerate(self, framerate: impl Into<Option<f64>>) -> Self
Set the frame rate in frames per second (or clear it with None).