Enum ColorCharacteristics

pub enum ColorCharacteristics

Color characteristics

Gives more information about values in a certain colorspace

Variants

sRGB

sRGB Transfer function

Rec709

Rec.709 Transfer function

Gamma2p2

Pure gamma 2.2 Transfer function, ITU-R 470M

Gamma2p8

Pure gamma 2.8 Transfer function, ITU-R 470BG

Smpte428

Smpte 428 Transfer function

Log100

Log100 Transfer function

Log100Sqrt10

Log100Sqrt10 Transfer function

Bt1361

Bt1361 Transfer function

Smpte240

Smpte 240 Transfer function

Iec61966

IEC 61966 Transfer function

Linear

Linear transfer function

PQ

Perceptual Quantizer (SMPTE ST 2084) - standard for HDR10

HLG

Hybrid Log-Gamma (ARIB STD-B67) - broadcast HDR

Unknown(u8)

Fallback for unknown cICP transfer functions

Trait Implementations

impl Clone for ColorCharacteristics

fn clone(&self) -> ColorCharacteristics

impl Copy for ColorCharacteristics

impl Debug for ColorCharacteristics

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl PartialEq for ColorCharacteristics

fn eq(&self, other: &ColorCharacteristics) -> bool

impl StructuralPartialEq for ColorCharacteristics

Auto Trait Implementations

impl Freeze for ColorCharacteristics

impl RefUnwindSafe for ColorCharacteristics

impl Send for ColorCharacteristics

impl Sync for ColorCharacteristics

impl Unpin for ColorCharacteristics

impl UnsafeUnpin for ColorCharacteristics

impl UnwindSafe for ColorCharacteristics

Blanket Implementations

impl<T> Any for ColorCharacteristics where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ColorCharacteristics where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ColorCharacteristics where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for ColorCharacteristics where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for ColorCharacteristics

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for ColorCharacteristics where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for ColorCharacteristics where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for ColorCharacteristics where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ColorCharacteristics where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>