pub struct DeliveryJitter { /* private fields */ }Expand description
Burst-aware PDV estimator (sliding-minimum window, per-interval maximum,
forgetting histogram, stall max-hold, RFC 3550 J).
Implementations§
Source§impl DeliveryJitter
impl DeliveryJitter
Sourcepub fn new(cfg: JitterConfig) -> Result<Self, Error>
pub fn new(cfg: JitterConfig) -> Result<Self, Error>
Sourcepub fn on_chunk(
&mut self,
arrival_us: Micros,
media_27mhz: Ticks27,
_bytes: u32,
) -> SampleOutcome
pub fn on_chunk( &mut self, arrival_us: Micros, media_27mhz: Ticks27, _bytes: u32, ) -> SampleOutcome
Feed one media-time-carrying chunk. media_27mhz is the raw (wrapped)
27 MHz media time (the PCR; or the media end in PCR-less mode), unrolled
here with clock33::pcr_signed_distance. _bytes is reserved (the
estimator is time-based; the C-ABI mirror carries it).
Sourcepub fn estimate(&self) -> JitterEstimate
pub fn estimate(&self) -> JitterEstimate
Current outputs (stall peak evaluated at the latest arrival).
Sourcepub fn baseline_us(&self) -> Micros
pub fn baseline_us(&self) -> Micros
Histogram baseline (ordinary-jitter upper tail).
Sourcepub fn stall_peak_at(&self, now_us: Micros) -> Micros
pub fn stall_peak_at(&self, now_us: Micros) -> Micros
Decayed stall-memory value at now_us.
Sourcepub fn window_overflows(&self) -> u32
pub fn window_overflows(&self) -> u32
Entries dropped by the minimum-window cap.
Sourcepub fn reset_baseline(&mut self)
pub fn reset_baseline(&mut self)
PCR discontinuity / new connection: drops the minimum window and the histogram, keeps the stall memory.
Sourcepub fn snapshot(&self) -> StallMemorySnapshot
pub fn snapshot(&self) -> StallMemorySnapshot
Stall memory for session persistence, aged to the latest arrival.
Sourcepub fn restore(&mut self, m: StallMemorySnapshot)
pub fn restore(&mut self, m: StallMemorySnapshot)
Install a stall memory (see StallMemorySnapshot for aging).