pub struct Cdl {
pub slope: [f32; 3],
pub offset: [f32; 3],
pub power: [f32; 3],
pub saturation: f32,
}Expand description
ASC slope/offset/power and Rec.709 saturation in straight linear RGB.
Fields§
§slope: [f32; 3]Per-channel gain.
offset: [f32; 3]Per-channel offset.
power: [f32; 3]Per-channel nonnegative power.
saturation: f32Nonnegative chroma multiplier.
Implementations§
Source§impl Cdl
impl Cdl
Sourcepub fn temperature_tint(
self,
temperature: f32,
tint: f32,
) -> Result<Self, ValidationError>
pub fn temperature_tint( self, temperature: f32, tint: f32, ) -> Result<Self, ValidationError>
Composes simple linear RGB temperature/tint gains in -1..=1.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validates finite, nonnegative gain, power and saturation.
Trait Implementations§
impl Copy for Cdl
impl StructuralPartialEq for Cdl
Auto Trait Implementations§
impl Forget for Cdl
impl Freeze for Cdl
impl RefUnwindSafe for Cdl
impl Send for Cdl
impl Sync for Cdl
impl Unpin for Cdl
impl UnsafeUnpin for Cdl
impl UnwindSafe for Cdl
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