Enum kolor::details::color::TransformFn[][src]

#[repr(u8)]
pub enum TransformFn {
Show variants NONE, sRGB, Oklab, Oklch, CIE_xyY, CIELAB, CIELCh, CIE_1960_UCS, CIE_1960_UCS_uvV, CIE_1964_UVW, CIE_1976_Luv, HSL, HSV, HSI, ICtCp_PQ, ICtCp_HLG, BT_601, PQ,
}
Expand description

A TransformFn identifies an invertible mapping of colors in a linear ColorSpace.

Variants

NONE
sRGB

The sRGB transfer functions (aka “gamma correction”)

Oklab

Oklab conversion from xyz

Oklch

Oklch (Oklab’s LCh variant) conversion from xyz

CIE_xyY

CIE xyY transform

CIELAB

CIELAB transform

CIELCh

CIELCh transform

CIE_1960_UCS

CIE 1960 UCS transform

CIE_1960_UCS_uvV

CIE 1960 UCS transform in uvV form

CIE_1964_UVW

CIE 1964 UVW transform

CIE_1976_Luv

CIE 1976 Luv transform

HSL

(Hue, Saturation, Lightness), where L is defined as the average of the largest and smallest color components

HSV

(Hue, Saturation, Value), where V is defined as the largest component of a color

HSI

(Hue, Saturation, Intensity), where I is defined as the average of the three components

ICtCp_PQ

BT.2100 ICtCp with PQ transfer function

ICtCp_HLG

BT.2100 ICtCp with HLG transfer function

BT_601

The BT.601/BT.709/BT.2020 (they are equivalent) OETF and inverse.

PQ

SMPTE ST 2084:2014 aka “Perceptual Quantizer” transfer functions used in BT.2100 for digitally created/distributed HDR content.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.