Class: AWSCDK::MediaLive::CfnChannel::H264ColorSpaceSettingsProperty

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

Overview

Settings for configuring color space in an H264 video encode.

The parent of this entity is H264Settings.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(color_space_passthrough_settings: nil, rec601_settings: nil, rec709_settings: nil) ⇒ H264ColorSpaceSettingsProperty

Returns a new instance of H264ColorSpaceSettingsProperty.

Parameters:



6123
6124
6125
6126
6127
6128
6129
6130
# File 'media_live/cfn_channel.rb', line 6123

def initialize(color_space_passthrough_settings: nil, rec601_settings: nil, rec709_settings: nil)
  @color_space_passthrough_settings = color_space_passthrough_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::ColorSpacePassthroughSettingsProperty.new(**color_space_passthrough_settings.transform_keys(&:to_sym)) : color_space_passthrough_settings
  Jsii::Type.check_type(@color_space_passthrough_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5Db2xvclNwYWNlUGFzc3Rocm91Z2hTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "colorSpacePassthroughSettings") unless @color_space_passthrough_settings.nil?
  @rec601_settings = rec601_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::Rec601SettingsProperty.new(**rec601_settings.transform_keys(&:to_sym)) : rec601_settings
  Jsii::Type.check_type(@rec601_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5SZWM2MDFTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "rec601Settings") unless @rec601_settings.nil?
  @rec709_settings = rec709_settings.is_a?(Hash) ? ::AWSCDK::MediaLive::CfnChannel::Rec709SettingsProperty.new(**rec709_settings.transform_keys(&:to_sym)) : rec709_settings
  Jsii::Type.check_type(@rec709_settings, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19tZWRpYWxpdmUuQ2ZuQ2hhbm5lbC5SZWM3MDlTZXR0aW5nc1Byb3BlcnR5In1dfX0=")), "rec709Settings") unless @rec709_settings.nil?
end

Instance Attribute Details

#color_space_passthrough_settingsAWSCDK::IResolvable, ... (readonly)

Passthrough applies no color space conversion to the output.



6136
6137
6138
# File 'media_live/cfn_channel.rb', line 6136

def color_space_passthrough_settings
  @color_space_passthrough_settings
end

#rec601_settingsAWSCDK::IResolvable, ... (readonly)

Settings to configure the handling of Rec601 color space.



6141
6142
6143
# File 'media_live/cfn_channel.rb', line 6141

def rec601_settings
  @rec601_settings
end

#rec709_settingsAWSCDK::IResolvable, ... (readonly)

Settings to configure the handling of Rec709 color space.



6146
6147
6148
# File 'media_live/cfn_channel.rb', line 6146

def rec709_settings
  @rec709_settings
end

Class Method Details

.jsii_propertiesObject



6148
6149
6150
6151
6152
6153
6154
# File 'media_live/cfn_channel.rb', line 6148

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

Instance Method Details

#to_jsiiObject



6156
6157
6158
6159
6160
6161
6162
6163
6164
# File 'media_live/cfn_channel.rb', line 6156

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