
commonMain.aws.sdk.kotlin.services.mediaconvert.model.ClipLimits.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
/**
* Specify YUV limits and RGB tolerances when you set Sample range conversion to Limited range clip.
*/
public class ClipLimits private constructor(builder: Builder) {
/**
* Specify the Maximum RGB color sample range tolerance for your output. MediaConvert corrects any YUV values that, when converted to RGB, would be outside the upper tolerance that you specify. Enter an integer from 90 to 105 as an offset percentage to the maximum possible value. Leave blank to use the default value 100. When you specify a value for Maximum RGB tolerance, you must set Sample range conversion to Limited range clip.
*/
public val maximumRgbTolerance: kotlin.Int? = builder.maximumRgbTolerance
/**
* Specify the Maximum YUV color sample limit. MediaConvert conforms any pixels in your input above the value that you specify to typical limited range bounds. Enter an integer from 920 to 1023. Leave blank to use the default value 940. The value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert automatically scales this value down. When you specify a value for Maximum YUV, you must set Sample range conversion to Limited range clip.
*/
public val maximumYuv: kotlin.Int? = builder.maximumYuv
/**
* Specify the Minimum RGB color sample range tolerance for your output. MediaConvert corrects any YUV values that, when converted to RGB, would be outside the lower tolerance that you specify. Enter an integer from -5 to 10 as an offset percentage to the minimum possible value. Leave blank to use the default value 0. When you specify a value for Minimum RGB tolerance, you must set Sample range conversion to Limited range clip.
*/
public val minimumRgbTolerance: kotlin.Int? = builder.minimumRgbTolerance
/**
* Specify the Minimum YUV color sample limit. MediaConvert conforms any pixels in your input below the value that you specify to typical limited range bounds. Enter an integer from 0 to 128. Leave blank to use the default value 64. The value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert automatically scales this value down. When you specify a value for Minumum YUV, you must set Sample range conversion to Limited range clip.
*/
public val minimumYuv: kotlin.Int? = builder.minimumYuv
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.ClipLimits = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ClipLimits(")
append("maximumRgbTolerance=$maximumRgbTolerance,")
append("maximumYuv=$maximumYuv,")
append("minimumRgbTolerance=$minimumRgbTolerance,")
append("minimumYuv=$minimumYuv")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maximumRgbTolerance ?: 0
result = 31 * result + (maximumYuv ?: 0)
result = 31 * result + (minimumRgbTolerance ?: 0)
result = 31 * result + (minimumYuv ?: 0)
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 ClipLimits
if (maximumRgbTolerance != other.maximumRgbTolerance) return false
if (maximumYuv != other.maximumYuv) return false
if (minimumRgbTolerance != other.minimumRgbTolerance) return false
if (minimumYuv != other.minimumYuv) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.ClipLimits = Builder(this).apply(block).build()
public class Builder {
/**
* Specify the Maximum RGB color sample range tolerance for your output. MediaConvert corrects any YUV values that, when converted to RGB, would be outside the upper tolerance that you specify. Enter an integer from 90 to 105 as an offset percentage to the maximum possible value. Leave blank to use the default value 100. When you specify a value for Maximum RGB tolerance, you must set Sample range conversion to Limited range clip.
*/
public var maximumRgbTolerance: kotlin.Int? = null
/**
* Specify the Maximum YUV color sample limit. MediaConvert conforms any pixels in your input above the value that you specify to typical limited range bounds. Enter an integer from 920 to 1023. Leave blank to use the default value 940. The value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert automatically scales this value down. When you specify a value for Maximum YUV, you must set Sample range conversion to Limited range clip.
*/
public var maximumYuv: kotlin.Int? = null
/**
* Specify the Minimum RGB color sample range tolerance for your output. MediaConvert corrects any YUV values that, when converted to RGB, would be outside the lower tolerance that you specify. Enter an integer from -5 to 10 as an offset percentage to the minimum possible value. Leave blank to use the default value 0. When you specify a value for Minimum RGB tolerance, you must set Sample range conversion to Limited range clip.
*/
public var minimumRgbTolerance: kotlin.Int? = null
/**
* Specify the Minimum YUV color sample limit. MediaConvert conforms any pixels in your input below the value that you specify to typical limited range bounds. Enter an integer from 0 to 128. Leave blank to use the default value 64. The value that you enter applies to 10-bit ranges. For 8-bit ranges, MediaConvert automatically scales this value down. When you specify a value for Minumum YUV, you must set Sample range conversion to Limited range clip.
*/
public var minimumYuv: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.ClipLimits) : this() {
this.maximumRgbTolerance = x.maximumRgbTolerance
this.maximumYuv = x.maximumYuv
this.minimumRgbTolerance = x.minimumRgbTolerance
this.minimumYuv = x.minimumYuv
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.ClipLimits = ClipLimits(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy