pub trait TransferFunctionExt {
// Required methods
fn linearize(&self, v: f32) -> f32;
fn delinearize(&self, v: f32) -> f32;
}Expand description
Adds scalar EOTF/OETF methods to TransferFunction.
Required Methods§
Sourcefn linearize(&self, v: f32) -> f32
fn linearize(&self, v: f32) -> f32
Scalar EOTF: encoded signal → linear light.
Canonical reference implementation for testing SIMD paths.
Sourcefn delinearize(&self, v: f32) -> f32
fn delinearize(&self, v: f32) -> f32
Scalar OETF: linear light → encoded signal.
Canonical reference implementation for testing SIMD paths.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".