Skip to main content

Module encoding

Module encoding 

Source
Expand description

Number and color encoding traits, types and standards.

Some color spaces, particularly RGB, may be encoded in more than one way and may have more than one standard. These encodings and standards are represented as type parameters in Palette, as a form of type branding, to prevent accidental mixups.

Modules§

adobe
The Adobe RGB (1998) standard.
gammaDeprecated
Gamma encoding.
linear
Linear encoding
p3
The P3 color space(s) and standards.
prophoto
The ProPhoto RGB standard.
rec_standards
The ITU-R Recommendation BT.2020 (Rec. 2020) and BT.709 (Rec. 709) standards and their associated transfer function.
srgb
The sRGB standard.

Structs§

AdobeRgb
The Adobe RGB (1998) (a.k.a. opRGB) color space and standard.
DciP3
The theatrical DCI-P3 standard.
DciP3Plus
The Canon DCI-P3+ color space and standard.
DisplayP3
The Display P3 standard.
F2p2Deprecated
Represents 2.2f64.
FromLinearLut
Lookup table from linear to gamma encoded values.
GammaDeprecated
Gamma encoding.
IntoLinearLut
Lookup table from gamma encoded to linear values.
Linear
A generic standard with linear components.
P3Gamma
A gamma 2.6 transfer function used by some P3 variants
ProPhotoRgb
The ProPhoto RGB standard and color space with gamma 2.2 transfer function.
Rec709
The Rec. 709 standard, color space, and transfer function (RecOetf).
Rec2020
The Rec. 2020 standard, color space, and transfer function (RecOetf).
RecOetf
The opto-electronic transfer function used in standard dynamic range (SDR) standards by the ITU-R such as Rec709 and Rec2020.
Srgb
The sRGB standard, color space, and transfer function.

Traits§

FromLinear
A transfer function from linear space.
GetLutBuilder
A transfer function that can produce a gamma lookup table.
IntoLinear
A transfer function to linear space.