#[repr(C)]pub enum JxlTransferFunction {
BT709 = 1,
Unknown = 2,
Linear = 8,
SRGB = 13,
PQ = 16,
DCI = 17,
HLG = 18,
Gamma = 65_535,
}Expand description
Built-in transfer functions for color encoding. Enum values match a subset of CICP (Rec. ITU-T H.273 | ISO/IEC 23091-2:2019(E)) unless specified otherwise.
Variants§
BT709 = 1
As specified in ITU-R BT.709-6
Unknown = 2
None of the other table entries describe the transfer function.
Linear = 8
The gamma exponent is 1
SRGB = 13
As specified in IEC 61966-2-1 sRGB
PQ = 16
As specified in SMPTE ST 2084
DCI = 17
As specified in SMPTE ST 428-1
HLG = 18
As specified in Rec. ITU-R BT.2100-1
Gamma = 65_535
Transfer function follows power law given by the gamma value in JxlColorEncoding.
Not a CICP value.
Trait Implementations§
Source§impl Clone for JxlTransferFunction
impl Clone for JxlTransferFunction
Source§fn clone(&self) -> JxlTransferFunction
fn clone(&self) -> JxlTransferFunction
Returns a duplicate 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 JxlTransferFunction
impl Debug for JxlTransferFunction
Source§impl Hash for JxlTransferFunction
impl Hash for JxlTransferFunction
Source§impl PartialEq for JxlTransferFunction
impl PartialEq for JxlTransferFunction
impl Copy for JxlTransferFunction
impl Eq for JxlTransferFunction
impl StructuralPartialEq for JxlTransferFunction
Auto Trait Implementations§
impl Freeze for JxlTransferFunction
impl RefUnwindSafe for JxlTransferFunction
impl Send for JxlTransferFunction
impl Sync for JxlTransferFunction
impl Unpin for JxlTransferFunction
impl UnwindSafe for JxlTransferFunction
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