pub struct ComplexityEstimator { /* private fields */ }Expand description
Frame complexity estimator.
Estimates spatial and temporal complexity of video frames to guide rate control decisions.
Implementations§
Source§impl ComplexityEstimator
impl ComplexityEstimator
Sourcepub fn set_block_size(&mut self, size: u32)
pub fn set_block_size(&mut self, size: u32)
Set the block size for analysis.
Sourcepub fn estimate(&mut self, luma: &[u8], stride: usize) -> ComplexityResult
pub fn estimate(&mut self, luma: &[u8], stride: usize) -> ComplexityResult
Estimate complexity of a frame’s luma plane.
Sourcepub fn avg_spatial(&self) -> f32
pub fn avg_spatial(&self) -> f32
Get average spatial complexity.
Sourcepub fn avg_temporal(&self) -> f32
pub fn avg_temporal(&self) -> f32
Get average temporal complexity.
Sourcepub fn avg_combined(&self) -> f32
pub fn avg_combined(&self) -> f32
Get average combined complexity.
Sourcepub fn frame_count(&self) -> u64
pub fn frame_count(&self) -> u64
Get frame count.
Trait Implementations§
Source§impl Clone for ComplexityEstimator
impl Clone for ComplexityEstimator
Source§fn clone(&self) -> ComplexityEstimator
fn clone(&self) -> ComplexityEstimator
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 ComplexityEstimator
impl Debug for ComplexityEstimator
Auto Trait Implementations§
impl Freeze for ComplexityEstimator
impl RefUnwindSafe for ComplexityEstimator
impl Send for ComplexityEstimator
impl Sync for ComplexityEstimator
impl Unpin for ComplexityEstimator
impl UnsafeUnpin for ComplexityEstimator
impl UnwindSafe for ComplexityEstimator
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