pub struct PsychoVisualConfig {
pub spatial_masking: bool,
pub luminance_masking: bool,
pub temporal_masking: bool,
pub edge_masking: bool,
pub strength: f32,
pub max_qp_delta_pos: i32,
pub max_qp_delta_neg: i32,
}Expand description
Configuration for the psycho-visual masking model.
Fields§
§spatial_masking: boolEnable spatial (texture) masking. Default: true.
luminance_masking: boolEnable luminance masking. Default: true.
temporal_masking: boolEnable temporal masking (requires SAD from motion estimation). Default: true.
edge_masking: boolEnable edge masking. Default: true.
strength: f32Overall strength multiplier applied to the JND-derived QP delta.
Range [0.0, 2.0]; default 1.0.
max_qp_delta_pos: i32Maximum allowed positive QP delta (soften a block at most this much).
max_qp_delta_neg: i32Maximum allowed negative QP delta (sharpen a block at most this much).
Trait Implementations§
Source§impl Clone for PsychoVisualConfig
impl Clone for PsychoVisualConfig
Source§fn clone(&self) -> PsychoVisualConfig
fn clone(&self) -> PsychoVisualConfig
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 PsychoVisualConfig
impl Debug for PsychoVisualConfig
Auto Trait Implementations§
impl Freeze for PsychoVisualConfig
impl RefUnwindSafe for PsychoVisualConfig
impl Send for PsychoVisualConfig
impl Sync for PsychoVisualConfig
impl Unpin for PsychoVisualConfig
impl UnsafeUnpin for PsychoVisualConfig
impl UnwindSafe for PsychoVisualConfig
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