Class: AWSCDK::MediaLive::CfnChannel::Av1ColorSpaceSettingsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
media_live/cfn_channel.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color_space_passthrough_settings: nil, hdr10_settings: nil, hlg2020_settings: nil, rec601_settings: nil, rec709_settings: nil) ⇒ Av1ColorSpaceSettingsProperty

Returns a new instance of Av1ColorSpaceSettingsProperty.

Parameters:



2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
# File 'media_live/cfn_channel.rb', line 2495

def initialize(color_space_passthrough_settings: nil, hdr10_settings: nil, hlg2020_settings: nil, rec601_settings: nil, rec709_settings: nil)
  @color_space_passthrough_settings = color_space_passthrough_settings
  Jsii::Type.check_type(@color_space_passthrough_settings, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "colorSpacePassthroughSettings") unless @color_space_passthrough_settings.nil?
  @hdr10_settings = hdr10_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::Hdr10SettingsProperty.new(**hdr10_settings.transform_keys(&:to_sym)) : hdr10_settings
  Jsii::Type.check_type(@hdr10_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5IZHIxMFNldHRpbmdzUHJvcGVydHkifV19fQ==")), "hdr10Settings") unless @hdr10_settings.nil?
  @hlg2020_settings = hlg2020_settings
  Jsii::Type.check_type(@hlg2020_settings, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "hlg2020Settings") unless @hlg2020_settings.nil?
  @rec601_settings = rec601_settings
  Jsii::Type.check_type(@rec601_settings, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "rec601Settings") unless @rec601_settings.nil?
  @rec709_settings = rec709_settings
  Jsii::Type.check_type(@rec709_settings, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "rec709Settings") unless @rec709_settings.nil?
end

Instance Attribute Details

#color_space_passthrough_settingsObject? (readonly)



2510
2511
2512
# File 'media_live/cfn_channel.rb', line 2510

def color_space_passthrough_settings
  @color_space_passthrough_settings
end

#hlg2020_settingsObject? (readonly)



2516
2517
2518
# File 'media_live/cfn_channel.rb', line 2516

def hlg2020_settings
  @hlg2020_settings
end

#rec601_settingsObject? (readonly)



2519
2520
2521
# File 'media_live/cfn_channel.rb', line 2519

def rec601_settings
  @rec601_settings
end

#rec709_settingsObject? (readonly)



2522
2523
2524
# File 'media_live/cfn_channel.rb', line 2522

def rec709_settings
  @rec709_settings
end

Class Method Details

.jsii_propertiesObject



2524
2525
2526
2527
2528
2529
2530
2531
2532
# File 'media_live/cfn_channel.rb', line 2524

def self.jsii_properties
  {
    :color_space_passthrough_settings => "colorSpacePassthroughSettings",
    :hdr10_settings => "hdr10Settings",
    :hlg2020_settings => "hlg2020Settings",
    :rec601_settings => "rec601Settings",
    :rec709_settings => "rec709Settings",
  }
end

Instance Method Details

#to_jsiiObject



2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
# File 'media_live/cfn_channel.rb', line 2534

def to_jsii
  result = {}
  result.merge!({
    "colorSpacePassthroughSettings" => @color_space_passthrough_settings,
    "hdr10Settings" => @hdr10_settings,
    "hlg2020Settings" => @hlg2020_settings,
    "rec601Settings" => @rec601_settings,
    "rec709Settings" => @rec709_settings,
  })
  result.compact
end