pub struct ComplexityResult {
pub spatial: f32,
pub temporal: f32,
pub combined: f32,
pub normalized: f32,
}Expand description
Result of complexity estimation.
Fields§
§spatial: f32Spatial complexity (texture/detail).
temporal: f32Temporal complexity (motion).
combined: f32Combined complexity metric.
normalized: f32Normalized complexity (relative to average).
Implementations§
Source§impl ComplexityResult
impl ComplexityResult
Sourcepub fn default_complexity() -> Self
pub fn default_complexity() -> Self
Create a result with default complexity.
Sourcepub fn is_high_complexity(&self) -> bool
pub fn is_high_complexity(&self) -> bool
Check if this is a high complexity frame.
Sourcepub fn is_low_complexity(&self) -> bool
pub fn is_low_complexity(&self) -> bool
Check if this is a low complexity frame.
Sourcepub fn suggested_qp_offset(&self) -> f32
pub fn suggested_qp_offset(&self) -> f32
Get suggested QP adjustment based on complexity.
Trait Implementations§
Source§impl Clone for ComplexityResult
impl Clone for ComplexityResult
Source§fn clone(&self) -> ComplexityResult
fn clone(&self) -> ComplexityResult
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 ComplexityResult
impl Debug for ComplexityResult
Source§impl Default for ComplexityResult
impl Default for ComplexityResult
Source§fn default() -> ComplexityResult
fn default() -> ComplexityResult
Returns the “default value” for a type. Read more
impl Copy for ComplexityResult
Auto Trait Implementations§
impl Freeze for ComplexityResult
impl RefUnwindSafe for ComplexityResult
impl Send for ComplexityResult
impl Sync for ComplexityResult
impl Unpin for ComplexityResult
impl UnsafeUnpin for ComplexityResult
impl UnwindSafe for ComplexityResult
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