#[repr(C)]pub struct AdjustParams {
pub brightness: f32,
pub contrast: f32,
pub saturation: f32,
pub exposure_ev: f32,
pub gamma: f32,
pub vibrance: f32,
pub temperature: f32,
pub tint: f32,
}Expand description
Parameters for adjust. Default is neutral — the effect passes
frames through visually unchanged.
All controls operate on gamma-encoded RGB (like FFmpeg’s eq filter)
and are clamped to their documented range in the shader.
Fields§
§brightness: f32Additive lift, -1.0..=1.0; 0.0 is neutral.
contrast: f32Multiplier around mid-gray, 0.0..=3.0; 1.0 is neutral.
saturation: f320.0 (grayscale) ..=3.0; 1.0 is neutral.
exposure_ev: f32Exposure in stops (post-decode, gamma space), -4.0..=4.0;
0.0 is neutral.
gamma: f32Output gamma, 0.2..=5.0; 1.0 is neutral. Values above 1.0
brighten mids (applied as pow(c, 1.0 / gamma)).
vibrance: f32Saturation boost weighted toward muted colors, -1.0..=1.0;
0.0 is neutral. Skin tones shift less than with saturation.
temperature: f32Warm/cool shift, -1.0 (blue) ..=1.0 (orange); 0.0 is neutral.
tint: f32Green/magenta shift, -1.0 (green) ..=1.0 (magenta); 0.0 is
neutral.
Trait Implementations§
Source§impl Clone for AdjustParams
impl Clone for AdjustParams
Source§fn clone(&self) -> AdjustParams
fn clone(&self) -> AdjustParams
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for AdjustParams
Source§impl Debug for AdjustParams
impl Debug for AdjustParams
Source§impl Default for AdjustParams
impl Default for AdjustParams
Source§impl PartialEq for AdjustParams
impl PartialEq for AdjustParams
impl Pod for AdjustParams
impl StructuralPartialEq for AdjustParams
Auto Trait Implementations§
impl Freeze for AdjustParams
impl RefUnwindSafe for AdjustParams
impl Send for AdjustParams
impl Sync for AdjustParams
impl Unpin for AdjustParams
impl UnsafeUnpin for AdjustParams
impl UnwindSafe for AdjustParams
Blanket Implementations§
impl<T> AnyBitPattern for Twhere
T: Pod,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.