pub struct TwoPassFirstPassStats { /* private fields */ }Expand description
Accumulated first-pass statistics for an entire encode session.
Implementations§
Source§impl TwoPassFirstPassStats
impl TwoPassFirstPassStats
Sourcepub fn push(&mut self, stats: FirstPassFrameStats)
pub fn push(&mut self, stats: FirstPassFrameStats)
Add one frame’s statistics.
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
Total number of analysed frames.
Sourcepub fn get(&self, index: usize) -> Option<&FirstPassFrameStats>
pub fn get(&self, index: usize) -> Option<&FirstPassFrameStats>
Access per-frame statistics by index.
Sourcepub fn iter(&self) -> impl Iterator<Item = &FirstPassFrameStats>
pub fn iter(&self) -> impl Iterator<Item = &FirstPassFrameStats>
Iterate over all per-frame statistics.
Sourcepub fn total_complexity(&self) -> f32
pub fn total_complexity(&self) -> f32
Sum of all complexity weights (denominator for proportional allocation).
Sourcepub fn mean_intra_inter_ratio(&self) -> f32
pub fn mean_intra_inter_ratio(&self) -> f32
Mean intra/inter ratio across all frames.
Sourcepub fn scene_change_count(&self) -> usize
pub fn scene_change_count(&self) -> usize
Number of scene changes detected in the first pass.
Trait Implementations§
Source§impl Clone for TwoPassFirstPassStats
impl Clone for TwoPassFirstPassStats
Source§fn clone(&self) -> TwoPassFirstPassStats
fn clone(&self) -> TwoPassFirstPassStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TwoPassFirstPassStats
impl Debug for TwoPassFirstPassStats
Source§impl Default for TwoPassFirstPassStats
impl Default for TwoPassFirstPassStats
Source§fn default() -> TwoPassFirstPassStats
fn default() -> TwoPassFirstPassStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TwoPassFirstPassStats
impl RefUnwindSafe for TwoPassFirstPassStats
impl Send for TwoPassFirstPassStats
impl Sync for TwoPassFirstPassStats
impl Unpin for TwoPassFirstPassStats
impl UnsafeUnpin for TwoPassFirstPassStats
impl UnwindSafe for TwoPassFirstPassStats
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