Enum jxl_oxide::color::TransferFunction
source · #[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
Fields
Pure gamma curve.
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§fn eq(&self, other: &TransferFunction) -> bool
fn eq(&self, other: &TransferFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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.