
commonMain.aws.sdk.kotlin.services.medialive.model.VideoBlackFailoverSettings.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.medialive.model
/**
* Placeholder documentation for VideoBlackFailoverSettings
*/
public class VideoBlackFailoverSettings private constructor(builder: Builder) {
/**
* A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'. For the input to be considered black, every pixel in a frame must be below this threshold. The threshold is calculated as a percentage (expressed as a decimal) of white. Therefore .1 means 10% white (or 90% black). Note how the formula works for any color depth. For example, if you set this field to 0.1 in 10-bit color depth: (1023*0.1=102.3), which means a pixel value of 102 or less is 'black'. If you set this field to .1 in an 8-bit color depth: (255*0.1=25.5), which means a pixel value of 25 or less is 'black'. The range is 0.0 to 1.0, with any number of decimal places.
*/
public val blackDetectThreshold: kotlin.Double = builder.blackDetectThreshold
/**
* The amount of time (in milliseconds) that the active input must be black before automatic input failover occurs.
*/
public val videoBlackThresholdMsec: kotlin.Int = builder.videoBlackThresholdMsec
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.medialive.model.VideoBlackFailoverSettings = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VideoBlackFailoverSettings(")
append("blackDetectThreshold=$blackDetectThreshold,")
append("videoBlackThresholdMsec=$videoBlackThresholdMsec")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = blackDetectThreshold.hashCode()
result = 31 * result + (videoBlackThresholdMsec)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as VideoBlackFailoverSettings
if (blackDetectThreshold != other.blackDetectThreshold) return false
if (videoBlackThresholdMsec != other.videoBlackThresholdMsec) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.medialive.model.VideoBlackFailoverSettings = Builder(this).apply(block).build()
public class Builder {
/**
* A value used in calculating the threshold below which MediaLive considers a pixel to be 'black'. For the input to be considered black, every pixel in a frame must be below this threshold. The threshold is calculated as a percentage (expressed as a decimal) of white. Therefore .1 means 10% white (or 90% black). Note how the formula works for any color depth. For example, if you set this field to 0.1 in 10-bit color depth: (1023*0.1=102.3), which means a pixel value of 102 or less is 'black'. If you set this field to .1 in an 8-bit color depth: (255*0.1=25.5), which means a pixel value of 25 or less is 'black'. The range is 0.0 to 1.0, with any number of decimal places.
*/
public var blackDetectThreshold: kotlin.Double = 0.0
/**
* The amount of time (in milliseconds) that the active input must be black before automatic input failover occurs.
*/
public var videoBlackThresholdMsec: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.medialive.model.VideoBlackFailoverSettings) : this() {
this.blackDetectThreshold = x.blackDetectThreshold
this.videoBlackThresholdMsec = x.videoBlackThresholdMsec
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.medialive.model.VideoBlackFailoverSettings = VideoBlackFailoverSettings(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy