#[repr(C)]pub enum TransferFunction {
Srgb = 0,
Rec709 = 1,
Gamma2p2 = 2,
Gamma2p8 = 3,
Smpte428 = 4,
Log100 = 5,
Log100Sqrt10 = 6,
Bt1361 = 7,
Smpte240 = 8,
Pq = 9,
Hlg = 10,
Linear = 11,
}
Expand description
Declares transfer function for transfer components into a linear colorspace and its inverse
Variants§
Srgb = 0
sRGB Transfer function
Rec709 = 1
Rec.709 Transfer function
Gamma2p2 = 2
Pure gamma 2.2 Transfer function, ITU-R 470M
Gamma2p8 = 3
Pure gamma 2.8 Transfer function, ITU-R 470BG
Smpte428 = 4
Smpte 428 Transfer function
Log100 = 5
Log100 Transfer function
Log100Sqrt10 = 6
Log100Sqrt10 Transfer function
Bt1361 = 7
Bt1361 Transfer function
Smpte240 = 8
Smpte 240 Transfer function
Pq = 9
PQ Transfer function
Hlg = 10
HLG (Hybrid log gamma) Transfer function
Linear = 11
Linear transfer function
Implementations§
Trait Implementations§
Source§impl Clone for TransferFunction
impl Clone for TransferFunction
Source§fn clone(&self) -> TransferFunction
fn clone(&self) -> TransferFunction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TransferFunction
impl Debug for TransferFunction
Source§impl From<u8> for TransferFunction
impl From<u8> for TransferFunction
Source§fn from(value: u8) -> TransferFunction
fn from(value: u8) -> TransferFunction
Converts to this type from the input type.
Source§impl Ord for TransferFunction
impl Ord for TransferFunction
Source§fn cmp(&self, other: &TransferFunction) -> Ordering
fn cmp(&self, other: &TransferFunction) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TransferFunction
impl PartialEq for TransferFunction
Source§impl PartialOrd for TransferFunction
impl PartialOrd 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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