#[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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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