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

The OETF of ITU-R BT.709, which BT.2020 shares for SDR: a linear segment near black, then a power curve with exponent 0.45. More...

Static Public Member Functions

static float encode (const float value)
 Encodes linear scene light into a Rec. 709 signal with the OETF.
static float decode (const float value)
 Decodes a Rec. 709 signal to linear scene 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 = "Rec709"
 Prefix of the color space name.

Detailed Description

The OETF of ITU-R BT.709, which BT.2020 shares for SDR: a linear segment near black, then a power curve with exponent 0.45.

Only the OETF and its inverse are applied, like tf::HLG: the linear values are scene light. A display decodes the signal with the BT.1886 EOTF instead, about a 2.4 power, which is not the inverse of this curve: the difference is the system gamma of about 1.2 that video adds for dim viewing. Channels are clamped to the 0-1 range, on full range signals: limited "TV" range is a quantization step this tag leaves out.

See also
ITU-R BT.709, ITU-R BT.2020, ITU-R BT.1886

Definition at line 222 of file Transfer.cppm.

Member Function Documentation

◆ clamp()

constexpr float aest::colors::tf::Rec709::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 265 of file Transfer.cppm.

◆ decode()

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

Decodes a Rec. 709 signal to linear scene light with the inverse OETF.

Parameters
[in]valueThe signal in the 0-1 range
Returns
The linear value in the 0-1 range.
Note
Not constexpr: std::pow is constexpr only since C++26.

Definition at line 250 of file Transfer.cppm.

◆ encode()

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

Encodes linear scene light into a Rec. 709 signal with the OETF.

Parameters
[in]valueThe linear value, 0 or greater
Returns
The signal in the 0-1 range: values from 1 up give 1.
Note
Not constexpr: std::pow is constexpr only since C++26.

Definition at line 233 of file Transfer.cppm.

Member Data Documentation

◆ PREFIX

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

Prefix of the color space name.

Definition at line 225 of file Transfer.cppm.


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