#[repr(u8)]pub enum TransferFunction {
Gamma {
g: u32,
inverted: bool,
},
Bt709 = 1,
Unknown = 2,
Linear = 8,
Srgb = 13,
Pq = 16,
Dci = 17,
Hlg = 18,
}
Expand description
Transfer function (tone curve).
Variants§
Gamma
Pure gamma curve.
Fields
Bt709 = 1
BT.709 transfer function.
Unknown = 2
Unknown transfer function.
Linear = 8
Linear (gamma of 1).
Srgb = 13
sRGB transfer function.
Pq = 16
Perceptual quantizer (HDR).
Dci = 17
DCI transfer function (gamma of 2.6).
Hlg = 18
Hybrid log-gamma (HDR).
Implementations§
Trait Implementations§
Source§impl<Ctx> Bundle<Ctx> for TransferFunction
impl<Ctx> Bundle<Ctx> for TransferFunction
Source§impl Clone for TransferFunction
impl Clone for TransferFunction
Source§fn clone(&self) -> TransferFunction
fn clone(&self) -> TransferFunction
Returns a copy 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 TransferFunction
impl Debug for TransferFunction
Source§impl Default for TransferFunction
impl Default for TransferFunction
Source§fn default() -> TransferFunction
fn default() -> TransferFunction
Returns the “default value” for a type. Read more
Source§impl From<KnownIccTrc> for TransferFunction
impl From<KnownIccTrc> for TransferFunction
Source§fn from(value: KnownIccTrc) -> TransferFunction
fn from(value: KnownIccTrc) -> TransferFunction
Converts to this type from the input type.
Source§impl PartialEq for TransferFunction
impl PartialEq for TransferFunction
Source§impl TryFrom<u32> for TransferFunction
impl TryFrom<u32> for TransferFunction
impl Copy for TransferFunction
impl Eq for TransferFunction
impl StructuralPartialEq for TransferFunction
Auto Trait Implementations§
impl Freeze for TransferFunction
impl RefUnwindSafe for TransferFunction
impl Send for TransferFunction
impl Sync for TransferFunction
impl Unpin for TransferFunction
impl UnwindSafe for TransferFunction
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, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
impl<T, Ctx> BundleDefault<Ctx> for Twhere
T: Default,
Source§fn default_with_context(_: Ctx) -> T
fn default_with_context(_: Ctx) -> T
Creates a default value with the given context.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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