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

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.

Detailed Description

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.

Member Function Documentation

◆ clamp()

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

Brings a channel value into the range of linear light.

Parameters
[in]valueThe channel value
Returns
value, or 0 when it is negative

Definition at line 155 of file Transfer.cppm.

◆ decode()

constexpr float aest::colors::tf::Linear::decode ( const float value)
inlinestaticconstexpr

Decodes a channel value to linear light, leaving it unchanged.

Parameters
[in]valueThe channel value
Returns
value

Definition at line 148 of file Transfer.cppm.

◆ encode()

constexpr float aest::colors::tf::Linear::encode ( const float value)
inlinestaticconstexpr

Encodes linear light, which this function leaves unchanged.

Parameters
[in]valueThe linear value
Returns
value

Definition at line 141 of file Transfer.cppm.

Member Data Documentation

◆ PREFIX

std::string_view aest::colors::tf::Linear::PREFIX = "Lin"
staticconstexpr

Prefix of the color space name.

Definition at line 134 of file Transfer.cppm.


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