internal HDRColorDataV1 AsHDRColorDataV1(ColorDataHDRCommand command) { return(new HDRColorDataV1( command, HDRMode, MasteringDisplayData )); }
/// <summary> /// Creates an instance of <see cref="HDRColorDataV2" />. /// </summary> /// <param name="command">The command to be executed.</param> public HDRColorDataV2(ColorDataHDRCommand command) { this = typeof(HDRColorDataV2).Instantiate <HDRColorDataV2>(); if (command != ColorDataHDRCommand.Get) { throw new ArgumentOutOfRangeException(nameof(command)); } _Command = command; }
internal HDRColorDataV2 AsHDRColorDataV2(ColorDataHDRCommand command) { return(new HDRColorDataV2( command, HDRMode, MasteringDisplayData, ColorFormat ?? ColorDataFormat.Auto, DynamicRange ?? ColorDataDynamicRange.Auto, ColorDepth ?? ColorDataDepth.Default )); }
/// <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; }