pub enum PcrEvent {
Sample {
pcr: Pcr,
jitter_27mhz: i64,
bitrate_bps: u64,
},
Discontinuity {
pcr: Pcr,
reason: DiscontinuityReason,
},
}Expand description
Outcome of feeding one packet to a PcrTracker.
Variants§
Sample
Packet carried a PCR and it was within the tolerance window —
jitter_27mhz is the signed residual against the running
bitrate’s prediction (0 on the first two samples — see
PcrTracker for the formula).
Fields
Discontinuity
Either the adaptation field set discontinuity_indicator = 1
or the PCR jump exceeded max_jitter_27mhz. The internal
running rate has been reset; the next two PCR samples will
bootstrap a fresh estimate.
Trait Implementations§
impl Copy for PcrEvent
impl StructuralPartialEq for PcrEvent
Auto Trait Implementations§
impl Freeze for PcrEvent
impl RefUnwindSafe for PcrEvent
impl Send for PcrEvent
impl Sync for PcrEvent
impl Unpin for PcrEvent
impl UnsafeUnpin for PcrEvent
impl UnwindSafe for PcrEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more