pub enum ColorTransfer {
Linear,
Gamma22,
Gamma28,
SRGB,
SDR,
BT2100PQ,
BT2100HLG,
}Expand description
Image opto-electronic transfer characteristics
Variants§
Linear
Linear
Gamma22
Gamma of 2.2
Gamma28
Gamma of 2.8
SRGB
SRGB (Gamma of 2.2 with linear part)
SDR
BT.601 BT.709 BT.2020
BT2100PQ
BT.2100 perceptual quantization (PQ)
BT2100HLG
BT.2100 hybrid log-gamma (HLG)
Implementations§
Source§impl ColorTransfer
impl ColorTransfer
pub fn linear_to_scaled(&self, i: f32) -> f32
pub fn scaled_to_linear(&self, i: f32) -> f32
Trait Implementations§
Source§impl Clone for ColorTransfer
impl Clone for ColorTransfer
Source§fn clone(&self) -> ColorTransfer
fn clone(&self) -> ColorTransfer
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 ColorTransfer
impl Debug for ColorTransfer
Source§impl PartialEq for ColorTransfer
impl PartialEq for ColorTransfer
impl Copy for ColorTransfer
impl Eq for ColorTransfer
impl StructuralPartialEq for ColorTransfer
Auto Trait Implementations§
impl Freeze for ColorTransfer
impl RefUnwindSafe for ColorTransfer
impl Send for ColorTransfer
impl Sync for ColorTransfer
impl Unpin for ColorTransfer
impl UnwindSafe for ColorTransfer
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