pub struct FirstPassStats {
pub frames: Vec<FramePassStats>,
pub total_complexity: f64,
pub frame_count: u64,
pub gop_complexities: Vec<f64>,
pub scene_changes: Vec<u64>,
pub avg_complexity: f64,
pub complexity_variance: f64,
}Expand description
First pass statistics collection.
Fields§
§frames: Vec<FramePassStats>Per-frame statistics.
total_complexity: f64Total complexity.
frame_count: u64Total frames analyzed.
gop_complexities: Vec<f64>Per-GOP complexity.
scene_changes: Vec<u64>Scene change indices.
avg_complexity: f64Average frame complexity.
complexity_variance: f64Complexity variance.
Implementations§
Source§impl FirstPassStats
impl FirstPassStats
Sourcepub fn add_frame(&mut self, stats: FramePassStats)
pub fn add_frame(&mut self, stats: FramePassStats)
Add frame statistics.
Sourcepub fn get_frame(&self, index: u64) -> Option<&FramePassStats>
pub fn get_frame(&self, index: u64) -> Option<&FramePassStats>
Get frame statistics by index.
Trait Implementations§
Source§impl Clone for FirstPassStats
impl Clone for FirstPassStats
Source§fn clone(&self) -> FirstPassStats
fn clone(&self) -> FirstPassStats
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 moreSource§impl Debug for FirstPassStats
impl Debug for FirstPassStats
Source§impl Default for FirstPassStats
impl Default for FirstPassStats
Source§fn default() -> FirstPassStats
fn default() -> FirstPassStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FirstPassStats
impl RefUnwindSafe for FirstPassStats
impl Send for FirstPassStats
impl Sync for FirstPassStats
impl Unpin for FirstPassStats
impl UnsafeUnpin for FirstPassStats
impl UnwindSafe for FirstPassStats
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