pub struct DisplayTransform {
pub exposure_ev: f32,
pub contrast: f32,
pub saturation: f32,
pub vignette_strength: f32,
pub tone_mapping: ToneMapping,
pub gamut: DisplayGamut,
pub transfer: TransferFunction,
pub peak_luminance_nits: f32,
}Expand description
Scene-linear exposure and display grading, independent of the backdrop.
Fields§
§exposure_ev: f32Exposure compensation in stops.
contrast: f32Display contrast multiplier in [0.5, 1.5].
saturation: f32Display saturation multiplier in [0, 1.5].
vignette_strength: f32Optical edge falloff in [0, 1].
tone_mapping: ToneMappingExplicit output tone operator.
gamut: DisplayGamutOutput display primaries.
transfer: TransferFunctionOutput electro-optical transfer curve.
peak_luminance_nits: f32Luminance represented by a unit scene-linear output for PQ, in nits.
Implementations§
Trait Implementations§
Source§impl Clone for DisplayTransform
impl Clone for DisplayTransform
impl Copy for DisplayTransform
Source§impl Debug for DisplayTransform
impl Debug for DisplayTransform
Source§impl Default for DisplayTransform
impl Default for DisplayTransform
Source§impl<'de> Deserialize<'de> for DisplayTransform
impl<'de> Deserialize<'de> for DisplayTransform
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DisplayTransform
impl PartialEq for DisplayTransform
Source§impl Serialize for DisplayTransform
impl Serialize for DisplayTransform
impl StructuralPartialEq for DisplayTransform
Auto Trait Implementations§
impl Freeze for DisplayTransform
impl RefUnwindSafe for DisplayTransform
impl Send for DisplayTransform
impl Sync for DisplayTransform
impl Unpin for DisplayTransform
impl UnsafeUnpin for DisplayTransform
impl UnwindSafe for DisplayTransform
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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