|
aest 0.1.0
Collection of C++ utility libraries
|
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. | |
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.
Definition at line 222 of file Transfer.cppm.
|
inlinestaticconstexpr |
Brings a signal value into the encoded range.
| [in] | value | The signal value |
value clamped to the 0-1 range Definition at line 265 of file Transfer.cppm.
|
inlinestatic |
Decodes a Rec. 709 signal to linear scene light with the inverse OETF.
| [in] | value | The signal in the 0-1 range |
Definition at line 250 of file Transfer.cppm.
|
inlinestatic |
Encodes linear scene light into a Rec. 709 signal with the OETF.
| [in] | value | The linear value, 0 or greater |
Definition at line 233 of file Transfer.cppm.
|
staticconstexpr |
Prefix of the color space name.
Definition at line 225 of file Transfer.cppm.