#[non_exhaustive]#[repr(u8)]pub enum BitRateConfidence {
Low = 0,
PcrContinuous = 1,
PcrAverage = 2,
Clock = 3,
Hardware = 4,
Override = 5,
}Expand description
Confidence in a caller-supplied transport-stream bitrate hint.
Mirrors TSDuck’s BitRateConfidence. When several bitrate values are
available, TSDuck keeps the one with the highest confidence; use
BitRateConfidence::Override to make a caller-supplied hint win over the
value TSDuck evaluates from PCR values.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Low = 0
Lowest confidence; used only when nothing better is available.
PcrContinuous = 1
Evaluated from PCR values and continuously adjusted.
PcrAverage = 2
Evaluated from PCR values, averaged over the whole stream.
Clock = 3
Evaluated from the system clock on a real-time stream.
Hardware = 4
Reported by a hardware input device, such as a demodulator or ASI input.
Override = 5
Highest confidence; overrides any bitrate TSDuck evaluates itself.
Trait Implementations§
Source§impl Clone for BitRateConfidence
impl Clone for BitRateConfidence
impl Copy for BitRateConfidence
Source§impl Debug for BitRateConfidence
impl Debug for BitRateConfidence
Source§impl Default for BitRateConfidence
impl Default for BitRateConfidence
impl Eq for BitRateConfidence
Source§impl Ord for BitRateConfidence
impl Ord for BitRateConfidence
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for BitRateConfidence
impl PartialEq for BitRateConfidence
Source§impl PartialOrd for BitRateConfidence
impl PartialOrd for BitRateConfidence
impl StructuralPartialEq for BitRateConfidence
Auto Trait Implementations§
impl Freeze for BitRateConfidence
impl RefUnwindSafe for BitRateConfidence
impl Send for BitRateConfidence
impl Sync for BitRateConfidence
impl Unpin for BitRateConfidence
impl UnsafeUnpin for BitRateConfidence
impl UnwindSafe for BitRateConfidence
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