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