|
aest 0.1.0
Collection of C++ utility libraries
|
No transfer function: channel values are proportional to light. More...
Static Public Member Functions | |
| static constexpr float | encode (const float value) |
| Encodes linear light, which this function leaves unchanged. | |
| static constexpr float | decode (const float value) |
| Decodes a channel value to linear light, leaving it unchanged. | |
| static constexpr float | clamp (const float value) |
| Brings a channel value into the range of linear light. | |
Static Public Attributes | |
| static constexpr std::string_view | PREFIX = "Lin" |
| Prefix of the color space name. | |
No transfer function: channel values are proportional to light.
Channels are clamped at 0 only, so they can hold HDR values above 1.
Definition at line 131 of file Transfer.cppm.
|
inlinestaticconstexpr |
Brings a channel value into the range of linear light.
| [in] | value | The channel value |
value, or 0 when it is negative Definition at line 155 of file Transfer.cppm.
|
inlinestaticconstexpr |
Decodes a channel value to linear light, leaving it unchanged.
| [in] | value | The channel value |
value Definition at line 148 of file Transfer.cppm.
|
inlinestaticconstexpr |
Encodes linear light, which this function leaves unchanged.
| [in] | value | The linear value |
value Definition at line 141 of file Transfer.cppm.
|
staticconstexpr |
Prefix of the color space name.
Definition at line 134 of file Transfer.cppm.