aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
References

The standards aest.colors implements. The documentation and the source comments link here rather than to the standards themselves, so each link is kept in one place.

Color spaces

Color space Specification(s)
aest::colors::SRGB, aest::colors::LinSRGB IEC 61966-2-1, ICC registry, W3C
aest::colors::DisplayP3, aest::colors::LinDisplayP3 SMPTE EG 432-1, the P3 primaries; with D65 white and the sRGB curve as in CSS Color 4
aest::colors::Rec709 ITU-R BT.709
aest::colors::Rec2020, aest::colors::LinRec2020 ITU-R BT.2020
aest::colors::Rec2100PQ, aest::colors::Rec2100HLG ITU-R BT.2100
aest::colors::ACEScg SMPTE ST 2065-1, the ACES primaries, and the ACEScg specification, AP1
aest::colors::HSL, aest::colors::HSV CSS Color 4 for HSL; A. R. Smith, Color gamut transform pairs (1978), for HSV
aest::colors::XYZ CIE 015:2018, Colorimetry, 4th edition
aest::colors::CIELab, aest::colors::CIELCH ISO/CIE 11664-4:2019, with the D50 white and Bradford matrices of CSS Color 4
aest::colors::OKLab, aest::colors::OKLCH B. Ottosson, A perceptual color space for image processing (2020), with the matrices recomputed by CSS Color 4

The Bradford transform that adapts white points is described, with its matrix, in B. Lindbloom's Chromatic Adaptation.

Transfer functions and HDR

Function or constant Specification
aest::colors::tf::SRGB IEC 61966-2-1
aest::colors::tf::Rec709 ITU-R BT.709, with the constants of ITU-R BT.2020
aest::colors::tf::PQ SMPTE ST 2084 and ITU-R BT.2100
aest::colors::tf::HLG ARIB STD-B67 and ITU-R BT.2100
aest::colors::REFERENCE_WHITE_NITS ITU-R BT.2408, the 203 cd/m² reference white
Display decoding ITU-R BT.1886, the display EOTF the library leaves out

Operations

Function Specification
aest::colors::mix() with an aest::colors::HueMode CSS Color 4, hue interpolation
aest::colors::luminance(), aest::colors::contrast_ratio() WCAG 2.2, relative luminance and contrast ratio
aest::colors::over(), aest::colors::Premultiplied T. Porter and T. Duff, Compositing Digital Images (1984); Compositing and Blending Level 1
aest::colors::invert(), named colors in aest::colors::css CSS Color 4

Tonemapping

Operator Source
aest::colors::tonemap::reinhard(), aest::colors::tonemap::reinhard_extended() E. Reinhard et al., Photographic Tone Reproduction for Digital Images (2002)
aest::colors::tonemap::aces_fitted() S. Hill's fit of the ACES RRT and sRGB ODT, as published in BakingLab

Packed formats

Format Specification
Bit layouts of every pack_*() function Vulkan specification, formats
11-, 10-bit and shared-exponent floats Khronos Data Format Specification 1.3, unsigned and shared-exponent floats
aest::colors::to_half(), aest::colors::from_half(), aest::colors::pack_rgba16f() IEEE 754-2019, binary16