Enum pic_scale::TransferFunction
source · pub enum TransferFunction {
Srgb,
Rec709,
Gamma2p2,
Gamma2p8,
}Expand description
Declares transfer function for transfer components into a linear colorspace and its inverse
Variants§
Srgb
sRGB Transfer function
Rec709
Rec.709 Transfer function
Gamma2p2
Pure gamma 2.2 Transfer function
Gamma2p8
Pure gamma 2.8 Transfer function
Implementations§
source§impl TransferFunction
impl TransferFunction
pub fn get_linearize_function(&self) -> fn(_: f32) -> f32
pub fn get_gamma_function(&self) -> fn(_: f32) -> f32
Trait Implementations§
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 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§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)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