CicpColorDescription Class
An immutable set of coding-independent code points (ITU-T H.273, ISO/IEC 23091-2) that describes how the color samples of an image are to be interpreted: color primaries, transfer characteristics, matrix coefficients and sample range.
public sealed class CicpColorDescription : IEquatable<CicpColorDescription>Remarks
The color primaries and the transfer characteristics are labels: no operation converts the pixels, and high dynamic range content (for example PQ, 16, or HLG, 18) is decoded to its coded sample values.
The matrix coefficients and the range describe the encoded source and are already applied by the decoder: decoded pixels are always full-range R'G'B' or luma samples.
Every code point from 0 to 255 is accepted, reserved values included, so that a description round-trips unchanged.
- Implements
Constructors
| Name | Description |
|---|---|
| CicpColorDescription(byte, byte, byte, bool) | Initializes a new instance of the CicpColorDescription class. |
CicpColorDescription(byte, byte, byte, bool)
CicpColorDescription.csInitializes a new instance of the CicpColorDescription class.
Properties
| Name | Description |
|---|---|
| ColorPrimaries | Gets the color primaries code point (for example 1 for BT.709 and sRGB, 9 for BT.2020, 12 for Display P3). A label: never applied. |
| FullRange | Gets a value indicating whether the encoded source uses the full sample range. Already applied by the decoder: decoded samples are always full range. |
| MatrixCoefficients | Gets the matrix coefficients code point of the encoded source (for example 0 for identity, 1 for BT.709, 6 for BT.601). Already applied by the decoder. |
| TransferCharacteristics | Gets the transfer characteristics code point (for example 13 for sRGB, 8 for linear, 16 for PQ, 18 for HLG). A label: never applied. |
ColorPrimaries
CicpColorDescription.csFullRange
CicpColorDescription.csMatrixCoefficients
CicpColorDescription.csTransferCharacteristics
CicpColorDescription.csMethods
| Name | Description |
|---|---|
| Equals(CicpColorDescription?) | Indicates whether the current object is equal to another object of the same type. |
| Equals(object?) | Determines whether the specified object is equal to the current object. |
| GetHashCode() | Serves as the default hash function. |
| ToString() | Returns a string that represents the current object. |
Equals overloads
Equals(CicpColorDescription?)
CicpColorDescription.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(CicpColorDescription? other)Parameters
otherCicpColorDescription?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.