/// <summary> /// Creates an instance of <see cref="HDRColorData" />. /// </summary> /// <param name="hdrMode">The hdr mode.</param> /// <param name="masteringDisplayData">The display color space configurations.</param> /// <param name="colorFormat">The color data color format.</param> /// <param name="dynamicRange">The color data dynamic range.</param> /// <param name="colorDepth">The color data color depth.</param> public HDRColorData( ColorDataHDRMode hdrMode, MasteringDisplayColorData masteringDisplayData, ColorDataFormat?colorFormat = null, ColorDataDynamicRange?dynamicRange = null, ColorDataDepth?colorDepth = null ) { HDRMode = hdrMode; MasteringDisplayData = masteringDisplayData; ColorFormat = colorFormat; DynamicRange = dynamicRange; ColorDepth = colorDepth; }
/// <summary> /// Creates an instance of <see cref="HDRColorDataV1" />. /// </summary> /// <param name="command">The command to be executed.</param> /// <param name="hdrMode">The hdr mode.</param> /// <param name="masteringDisplayData">The display color space configurations.</param> public HDRColorDataV1( ColorDataHDRCommand command, ColorDataHDRMode hdrMode, MasteringDisplayColorData masteringDisplayData = default ) { this = typeof(HDRColorDataV1).Instantiate <HDRColorDataV1>(); if (command != ColorDataHDRCommand.Set) { throw new ArgumentOutOfRangeException(nameof(command)); } _Command = command; _HDRMode = hdrMode; _MasteringDisplayData = masteringDisplayData; _StaticMetadataDescriptorId = StaticMetadataDescriptorId.StaticMetadataType1; }
/// <summary> /// Creates an instance of <see cref="HDRColorDataV2" />. /// </summary> /// <param name="command">The command to be executed.</param> /// <param name="hdrMode">The hdr mode.</param> /// <param name="masteringDisplayData">The display color space configurations.</param> /// <param name="colorFormat">The color data color format.</param> /// <param name="dynamicRange">The color data dynamic range.</param> /// <param name="colorDepth">The color data color depth.</param> public HDRColorDataV2( ColorDataHDRCommand command, ColorDataHDRMode hdrMode, MasteringDisplayColorData masteringDisplayData = default, ColorDataFormat colorFormat = ColorDataFormat.Default, ColorDataDynamicRange dynamicRange = ColorDataDynamicRange.Auto, ColorDataDepth colorDepth = ColorDataDepth.Default ) { this = typeof(HDRColorDataV2).Instantiate <HDRColorDataV2>(); if (command != ColorDataHDRCommand.Set) { throw new ArgumentOutOfRangeException(nameof(command)); } _Command = command; _HDRMode = hdrMode; _MasteringDisplayData = masteringDisplayData; _ColorFormat = colorFormat; _DynamicRange = dynamicRange; _ColorDepth = colorDepth; _StaticMetadataDescriptorId = StaticMetadataDescriptorId.StaticMetadataType1; }