Class Rec2020Companding
Implements Rec. 2020 companding function.
Inherited Members
Namespace: SixLabors.ImageSharp.ColorSpaces.Companding
Assembly: SixLabors.ImageSharp.dll
Syntax
public static class Rec2020Companding
Remarks
Methods
| Edit this page View SourceCompress(float)
Compresses an uncompanded channel (linear) to its nonlinear equivalent.
Declaration
public static float Compress(float channel)
Parameters
Type | Name | Description |
---|---|---|
float | channel | The channel value. |
Returns
Type | Description |
---|---|
float | The float representing the nonlinear channel value. |
Expand(float)
Expands a companded channel to its linear equivalent with respect to the energy.
Declaration
public static float Expand(float channel)
Parameters
Type | Name | Description |
---|---|---|
float | channel | The channel value. |
Returns
Type | Description |
---|---|
float | The float representing the linear channel value. |