pub struct VbvStatistics {
pub frame_count: u64,
pub underflow_count: u64,
pub overflow_count: u64,
pub current_fullness: f64,
pub min_fullness: f64,
pub max_fullness: f64,
pub buffer_size: u64,
}Expand description
VBV buffer statistics.
Fields§
§frame_count: u64Total frames processed.
underflow_count: u64Number of underflows.
overflow_count: u64Number of overflows.
current_fullness: f64Current buffer fullness in bits.
min_fullness: f64Minimum observed fullness.
max_fullness: f64Maximum observed fullness.
buffer_size: u64Total buffer size.
Implementations§
Source§impl VbvStatistics
impl VbvStatistics
Sourcepub fn is_compliant(&self) -> bool
pub fn is_compliant(&self) -> bool
Check if VBV compliance is good (no underflows/overflows).
Sourcepub fn utilization(&self) -> BufferUtilization
pub fn utilization(&self) -> BufferUtilization
Get buffer utilization statistics.
Trait Implementations§
Source§impl Clone for VbvStatistics
impl Clone for VbvStatistics
Source§fn clone(&self) -> VbvStatistics
fn clone(&self) -> VbvStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VbvStatistics
impl RefUnwindSafe for VbvStatistics
impl Send for VbvStatistics
impl Sync for VbvStatistics
impl Unpin for VbvStatistics
impl UnsafeUnpin for VbvStatistics
impl UnwindSafe for VbvStatistics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more