#[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 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
)