pub struct AdaptiveQuantization { /* private fields */ }Expand description
Adaptive Quantization controller.
Implementations§
Source§impl AdaptiveQuantization
impl AdaptiveQuantization
Sourcepub fn set_strength(&mut self, strength: f32)
pub fn set_strength(&mut self, strength: f32)
Set AQ strength.
Sourcepub fn set_dark_boost(&mut self, enable: bool)
pub fn set_dark_boost(&mut self, enable: bool)
Enable or disable dark region boost.
Sourcepub fn set_thresholds(&mut self, dark: u8, bright: u8)
pub fn set_thresholds(&mut self, dark: u8, bright: u8)
Set dark and bright thresholds.
Sourcepub fn set_psy_strength(&mut self, strength: f32)
pub fn set_psy_strength(&mut self, strength: f32)
Set psychovisual strength.
Sourcepub fn calculate_offsets(&self, luma: &[u8], stride: usize) -> AqResult
pub fn calculate_offsets(&self, luma: &[u8], stride: usize) -> AqResult
Calculate per-block QP offsets for a frame.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
Check if AQ is enabled.
Trait Implementations§
Source§impl Clone for AdaptiveQuantization
impl Clone for AdaptiveQuantization
Source§fn clone(&self) -> AdaptiveQuantization
fn clone(&self) -> AdaptiveQuantization
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 AdaptiveQuantization
impl Debug for AdaptiveQuantization
Auto Trait Implementations§
impl Freeze for AdaptiveQuantization
impl RefUnwindSafe for AdaptiveQuantization
impl Send for AdaptiveQuantization
impl Sync for AdaptiveQuantization
impl Unpin for AdaptiveQuantization
impl UnsafeUnpin for AdaptiveQuantization
impl UnwindSafe for AdaptiveQuantization
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