MasteringDisplayColorVolume Class
An immutable mastering display color volume (SMPTE ST 2086, the mdcv box of ISO/IEC 14496-12): the color primaries, the white point and the luminance range of the display on which high dynamic range content was mastered.
public sealed class MasteringDisplayColorVolume : IEquatable<MasteringDisplayColorVolume>Remarks
The values are kept as the integers the file stores, so that a description round-trips unchanged: chromaticity coordinates in units of 0.00002 (50,000 is 1.0) and luminances in units of 0.0001 candela per square meter. Every value is accepted, the ones a display cannot have included.
This is a label: it describes the display the content was graded on, not the color space of the pixels (ImageMetadata.Cicp or ImageMetadata.IccProfile does), and no operation computes it.
- Implements
Constructors
| Name | Description |
|---|---|
| MasteringDisplayColorVolume(ushort, ushort, ushort, ushort, ushort, ushort, ushort, ushort, uint, uint) | Initializes a new instance of the MasteringDisplayColorVolume class. |
MasteringDisplayColorVolume(ushort, ushort, ushort, ushort, ushort, ushort, ushort, ushort, uint, uint)
MasteringDisplayColorVolume.csInitializes a new instance of the MasteringDisplayColorVolume class.
public MasteringDisplayColorVolume(ushort redX, ushort redY, ushort greenX, ushort greenY, ushort blueX, ushort blueY, ushort whitePointX, ushort whitePointY, uint maxLuminance, uint minLuminance)Parameters
redXushort- The x chromaticity coordinate of the red primary, in units of 0.00002.
redYushort- The y chromaticity coordinate of the red primary, in units of 0.00002.
greenXushort- The x chromaticity coordinate of the green primary, in units of 0.00002.
greenYushort- The y chromaticity coordinate of the green primary, in units of 0.00002.
blueXushort- The x chromaticity coordinate of the blue primary, in units of 0.00002.
blueYushort- The y chromaticity coordinate of the blue primary, in units of 0.00002.
whitePointXushort- The x chromaticity coordinate of the white point, in units of 0.00002.
whitePointYushort- The y chromaticity coordinate of the white point, in units of 0.00002.
maxLuminanceuint- The nominal maximum luminance of the display, in units of 0.0001 candela per square meter.
minLuminanceuint- The nominal minimum luminance of the display, in units of 0.0001 candela per square meter.
Properties
| Name | Description |
|---|---|
| BlueX | Gets the x chromaticity coordinate of the blue primary, in units of 0.00002. |
| BlueY | Gets the y chromaticity coordinate of the blue primary, in units of 0.00002. |
| GreenX | Gets the x chromaticity coordinate of the green primary, in units of 0.00002. |
| GreenY | Gets the y chromaticity coordinate of the green primary, in units of 0.00002. |
| MaxLuminance | Gets the nominal maximum luminance of the display, in units of 0.0001 candela per square meter. |
| MaxLuminanceCandelasPerSquareMeter | Gets the nominal maximum luminance of the display, in candelas per square meter. |
| MinLuminance | Gets the nominal minimum luminance of the display, in units of 0.0001 candela per square meter. |
| MinLuminanceCandelasPerSquareMeter | Gets the nominal minimum luminance of the display, in candelas per square meter. |
| RedX | Gets the x chromaticity coordinate of the red primary, in units of 0.00002. |
| RedY | Gets the y chromaticity coordinate of the red primary, in units of 0.00002. |
| WhitePointX | Gets the x chromaticity coordinate of the white point, in units of 0.00002. |
| WhitePointY | Gets the y chromaticity coordinate of the white point, in units of 0.00002. |
MaxLuminance
MasteringDisplayColorVolume.csMaxLuminanceCandelasPerSquareMeter
MasteringDisplayColorVolume.csMinLuminance
MasteringDisplayColorVolume.csMinLuminanceCandelasPerSquareMeter
MasteringDisplayColorVolume.csWhitePointX
MasteringDisplayColorVolume.csWhitePointY
MasteringDisplayColorVolume.csMethods
| Name | Description |
|---|---|
| Equals(MasteringDisplayColorVolume?) | 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(MasteringDisplayColorVolume?)
MasteringDisplayColorVolume.csIndicates whether the current object is equal to another object of the same type.
public bool Equals(MasteringDisplayColorVolume? other)Parameters
otherMasteringDisplayColorVolume?- An object to compare with this object.
Returns
bool true if the current object is equal to the other parameter; otherwise, false.