aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
aest::colors::tf::HLG Struct Referenceexport

The Hybrid Log-Gamma OETF of ITU-R BT.2100 and ARIB STD-B67, the relative HDR transfer function of broadcast. More...

Static Public Member Functions

static float encode (const float value)
 Encodes linear light into an HLG signal with the OETF.
static float decode (const float value)
 Decodes an HLG signal to linear light with the inverse OETF.
static constexpr float clamp (const float value)
 Brings a signal value into the encoded range.

Static Public Attributes

static constexpr std::string_view PREFIX = "HLG"
 Prefix of the color space name.
static constexpr bool IS_HDR = true
 HLG is an HDR signal.

Detailed Description

The Hybrid Log-Gamma OETF of ITU-R BT.2100 and ARIB STD-B67, the relative HDR transfer function of broadcast.

Linear 1.0 encodes to 75%, the BT.2408 reference white, so the signal 1.0 is linear 3.77. Only the OETF and its inverse are applied: the linear values are scene light, and no OOTF maps them to the light of a display with a given peak. Channels are clamped to the 0-1 range.

See also
ARIB STD-B67, ITU-R BT.2100

Definition at line 330 of file Transfer.cppm.

Member Function Documentation

◆ clamp()

constexpr float aest::colors::tf::HLG::clamp ( const float value)
inlinestaticconstexpr

Brings a signal value into the encoded range.

Parameters
[in]valueThe signal value
Returns
value clamped to the 0-1 range

Definition at line 370 of file Transfer.cppm.

◆ decode()

float aest::colors::tf::HLG::decode ( const float value)
inlinestatic

Decodes an HLG signal to linear light with the inverse OETF.

Parameters
[in]valueThe HLG signal in the 0-1 range
Returns
The linear value, 1 being reference white.
Note
Not constexpr: std::exp is constexpr only since C++26.

Definition at line 357 of file Transfer.cppm.

◆ encode()

float aest::colors::tf::HLG::encode ( const float value)
inlinestatic

Encodes linear light into an HLG signal with the OETF.

Parameters
[in]valueThe linear value, 0 or greater, 1 being reference white
Returns
The HLG signal; values from linear 3.77 up give 1 or more.
Note
Not constexpr: std::sqrt and std::log are constexpr only since C++26.

Definition at line 344 of file Transfer.cppm.

Member Data Documentation

◆ IS_HDR

bool aest::colors::tf::HLG::IS_HDR = true
staticconstexpr

HLG is an HDR signal.

Definition at line 336 of file Transfer.cppm.

◆ PREFIX

std::string_view aest::colors::tf::HLG::PREFIX = "HLG"
staticconstexpr

Prefix of the color space name.

Definition at line 333 of file Transfer.cppm.


The documentation for this struct was generated from the following file: