pub struct SimpleRateControlStats {
pub frames_encoded: u64,
pub total_bits: u64,
pub avg_bits_per_frame: f64,
pub avg_complexity: f32,
pub vbv_fullness: f64,
pub target_bitrate_kbps: u32,
pub actual_bitrate_kbps: f64,
}Expand description
Per-session rate control statistics snapshot.
Fields§
§frames_encoded: u64Number of frames encoded so far.
total_bits: u64Total bits produced by the encoder (sum of actual_bits passed to
SimpleRateController::record_frame).
avg_bits_per_frame: f64Running mean of bits per frame.
avg_complexity: f32Running mean of the complexity values supplied to the controller.
vbv_fullness: f64Current VBV buffer fullness in [0.0, 1.0]. 0 = empty, 1 = full.
target_bitrate_kbps: u32Target bitrate in kbps derived from the mode, or 0 for CRF mode.
actual_bitrate_kbps: f64Actual measured bitrate in kbps based on bits spent and frames encoded.
Trait Implementations§
Source§impl Clone for SimpleRateControlStats
impl Clone for SimpleRateControlStats
Source§fn clone(&self) -> SimpleRateControlStats
fn clone(&self) -> SimpleRateControlStats
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 SimpleRateControlStats
impl RefUnwindSafe for SimpleRateControlStats
impl Send for SimpleRateControlStats
impl Sync for SimpleRateControlStats
impl Unpin for SimpleRateControlStats
impl UnsafeUnpin for SimpleRateControlStats
impl UnwindSafe for SimpleRateControlStats
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