Your screen. Your subscription. Your ProMax. Start with a one-day trial ↗

Pro Max 4K OTT

Keeping linear-light RGB separate from nonlinear RGB code values

Linear-light RGB values and nonlinear RGB signals can share the same numeric range while representing different quantities.

An app licence or a service account. Keep player purchase details separate from the service activation record. Pro Max 4K OTT, promax4k.tv.
An app licence or a service account. Keep player purchase details separate from the service activation record. Pro Max 4K OTT, promax4k.tv.

Linear-light RGB values and nonlinear RGB signals can share the same numeric range while representing different quantities. A transfer function connects them. Before applying an image-processing equation, establish which representation its inputs require; otherwise correct arithmetic can still implement the wrong operation on the picture.

Label the nonlinear stage

BT.709 gives an opto-electronic transfer relation between normalized linear image information and an electrical signal. Its upper branch uses 1.099 times the linear value raised to 0.45, minus 0.099; its low branch is linear with slope 4.5. The prime marks in the later luma derivation identify nonlinear component signals. These source-encoding definitions should not be collapsed into a universal television display-power equation.

Compare two meanings of one half

Using the stated upper branch, a normalized linear value of 0.5 encodes to approximately 0.7055. Conversely, a nonlinear signal value of 0.5 corresponds through the inverse relation to approximately 0.2596 in the linear representation. Neither number is an arbitrary brightness correction. They describe the same specified relationship in opposite directions, so replacing one by the other requires knowing which representation a processing stage expects.

Check the order of operations

An illustrative linear average of black and white is 0.5, which then encodes to about 0.7055 through that transfer relation. Averaging their nonlinear endpoint signals instead gives 0.5, whose inverse corresponds to about 0.2596. This calculation shows why averaging and a nonlinear transform do not generally commute. It does not prescribe one artistic blend for every application; it exposes an assumption that a processing specification must make explicit.

Describe the handoff rather than guess

At each processing boundary, record whether the components are linear or nonlinear, the primaries, the transfer relation and the normalization or code range. A luma matrix defined for nonlinear RGB should receive that representation; a calculation defined in linear light needs the corresponding linear inputs. Clamping, integer rounding and quantization are further operations that should be documented separately. With those labels preserved, two implementations can compare intermediate numbers meaningfully instead of debating an unexplained gamma setting.

Sources & further reading

An evening worth making time for

Get the player ready.
We’ll help with the rest.

Install the player for your screen, then WhatsApp the ProMax team for a one-day free trial. Already watching? Open the help desk for your next step.

Ask ProMax↑