|
aest 0.1.0
Collection of C++ utility libraries
|
The Perceptual Quantizer of SMPTE ST 2084 and ITU-R BT.2100, the absolute HDR transfer function of HDR10 and Dolby Vision. More...
Static Public Member Functions | |
| static float | encode (const float value) |
| Encodes linear light into a PQ signal. | |
| static float | decode (const float value) |
| Decodes a PQ signal to linear light. | |
| static constexpr float | clamp (const float value) |
| Brings a signal value into the encoded range. | |
Static Public Attributes | |
| static constexpr std::string_view | PREFIX = "PQ" |
| Prefix of the color space name. | |
| static constexpr bool | IS_HDR = true |
| PQ is an HDR signal. | |
The Perceptual Quantizer of SMPTE ST 2084 and ITU-R BT.2100, the absolute HDR transfer function of HDR10 and Dolby Vision.
Linear 1.0 is REFERENCE_WHITE_NITS, 203 cd/m², so it encodes to about 58%; the signal 1.0 is 10000 cd/m², linear 49.26. Channels are clamped to the 0-1 range.
Definition at line 278 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 316 of file Transfer.cppm.
|
inlinestatic |
Decodes a PQ signal to linear light.
| [in] | value | The PQ signal in the 0-1 range |
Definition at line 304 of file Transfer.cppm.
|
inlinestatic |
Encodes linear light into a PQ signal.
| [in] | value | The linear value, 0 or greater, 1 being 203 cd/m² |
Definition at line 292 of file Transfer.cppm.
|
staticconstexpr |
PQ is an HDR signal.
Definition at line 284 of file Transfer.cppm.
|
staticconstexpr |
Prefix of the color space name.
Definition at line 281 of file Transfer.cppm.