Table of Contents

Class Rec2020Companding

Namespace
SixLabors.ImageSharp.ColorSpaces.Companding
Assembly
SixLabors.ImageSharp.dll

Implements Rec. 2020 companding function.

public static class Rec2020Companding
Inheritance
Rec2020Companding
Inherited Members

Remarks

Methods

Compress(float)

Compresses an uncompanded channel (linear) to its nonlinear equivalent.

public static float Compress(float channel)

Parameters

channel float

The channel value.

Returns

float

The float representing the nonlinear channel value.

Expand(float)

Expands a companded channel to its linear equivalent with respect to the energy.

public static float Expand(float channel)

Parameters

channel float

The channel value.

Returns

float

The float representing the linear channel value.