All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.mediaconvert.model.Hdr10Metadata.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.mediaconvert.model



/**
 * Use these settings to specify static color calibration metadata, as defined by SMPTE ST 2086. These values don't affect the pixel values that are encoded in the video stream. They are intended to help the downstream video player display content in a way that reflects the intentions of the the content creator.
 */
public class Hdr10Metadata private constructor(builder: Builder) {
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val bluePrimaryX: kotlin.Int? = builder.bluePrimaryX
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val bluePrimaryY: kotlin.Int? = builder.bluePrimaryY
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val greenPrimaryX: kotlin.Int? = builder.greenPrimaryX
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val greenPrimaryY: kotlin.Int? = builder.greenPrimaryY
    /**
     * Maximum light level among all samples in the coded video sequence, in units of candelas per square meter. This setting doesn't have a default value; you must specify a value that is suitable for the content.
     */
    public val maxContentLightLevel: kotlin.Int? = builder.maxContentLightLevel
    /**
     * Maximum average light level of any frame in the coded video sequence, in units of candelas per square meter. This setting doesn't have a default value; you must specify a value that is suitable for the content.
     */
    public val maxFrameAverageLightLevel: kotlin.Int? = builder.maxFrameAverageLightLevel
    /**
     * Nominal maximum mastering display luminance in units of of 0.0001 candelas per square meter.
     */
    public val maxLuminance: kotlin.Int? = builder.maxLuminance
    /**
     * Nominal minimum mastering display luminance in units of of 0.0001 candelas per square meter
     */
    public val minLuminance: kotlin.Int? = builder.minLuminance
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val redPrimaryX: kotlin.Int? = builder.redPrimaryX
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val redPrimaryY: kotlin.Int? = builder.redPrimaryY
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val whitePointX: kotlin.Int? = builder.whitePointX
    /**
     * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
     */
    public val whitePointY: kotlin.Int? = builder.whitePointY

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.Hdr10Metadata = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("Hdr10Metadata(")
        append("bluePrimaryX=$bluePrimaryX,")
        append("bluePrimaryY=$bluePrimaryY,")
        append("greenPrimaryX=$greenPrimaryX,")
        append("greenPrimaryY=$greenPrimaryY,")
        append("maxContentLightLevel=$maxContentLightLevel,")
        append("maxFrameAverageLightLevel=$maxFrameAverageLightLevel,")
        append("maxLuminance=$maxLuminance,")
        append("minLuminance=$minLuminance,")
        append("redPrimaryX=$redPrimaryX,")
        append("redPrimaryY=$redPrimaryY,")
        append("whitePointX=$whitePointX,")
        append("whitePointY=$whitePointY")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bluePrimaryX ?: 0
        result = 31 * result + (bluePrimaryY ?: 0)
        result = 31 * result + (greenPrimaryX ?: 0)
        result = 31 * result + (greenPrimaryY ?: 0)
        result = 31 * result + (maxContentLightLevel ?: 0)
        result = 31 * result + (maxFrameAverageLightLevel ?: 0)
        result = 31 * result + (maxLuminance ?: 0)
        result = 31 * result + (minLuminance ?: 0)
        result = 31 * result + (redPrimaryX ?: 0)
        result = 31 * result + (redPrimaryY ?: 0)
        result = 31 * result + (whitePointX ?: 0)
        result = 31 * result + (whitePointY ?: 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 Hdr10Metadata

        if (bluePrimaryX != other.bluePrimaryX) return false
        if (bluePrimaryY != other.bluePrimaryY) return false
        if (greenPrimaryX != other.greenPrimaryX) return false
        if (greenPrimaryY != other.greenPrimaryY) return false
        if (maxContentLightLevel != other.maxContentLightLevel) return false
        if (maxFrameAverageLightLevel != other.maxFrameAverageLightLevel) return false
        if (maxLuminance != other.maxLuminance) return false
        if (minLuminance != other.minLuminance) return false
        if (redPrimaryX != other.redPrimaryX) return false
        if (redPrimaryY != other.redPrimaryY) return false
        if (whitePointX != other.whitePointX) return false
        if (whitePointY != other.whitePointY) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.Hdr10Metadata = Builder(this).apply(block).build()

    public class Builder {
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var bluePrimaryX: kotlin.Int? = null
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var bluePrimaryY: kotlin.Int? = null
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var greenPrimaryX: kotlin.Int? = null
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var greenPrimaryY: kotlin.Int? = null
        /**
         * Maximum light level among all samples in the coded video sequence, in units of candelas per square meter. This setting doesn't have a default value; you must specify a value that is suitable for the content.
         */
        public var maxContentLightLevel: kotlin.Int? = null
        /**
         * Maximum average light level of any frame in the coded video sequence, in units of candelas per square meter. This setting doesn't have a default value; you must specify a value that is suitable for the content.
         */
        public var maxFrameAverageLightLevel: kotlin.Int? = null
        /**
         * Nominal maximum mastering display luminance in units of of 0.0001 candelas per square meter.
         */
        public var maxLuminance: kotlin.Int? = null
        /**
         * Nominal minimum mastering display luminance in units of of 0.0001 candelas per square meter
         */
        public var minLuminance: kotlin.Int? = null
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var redPrimaryX: kotlin.Int? = null
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var redPrimaryY: kotlin.Int? = null
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var whitePointX: kotlin.Int? = null
        /**
         * HDR Master Display Information must be provided by a color grader, using color grading tools. Range is 0 to 50,000, each increment represents 0.00002 in CIE1931 color coordinate. Note that this setting is not for color correction.
         */
        public var whitePointY: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.Hdr10Metadata) : this() {
            this.bluePrimaryX = x.bluePrimaryX
            this.bluePrimaryY = x.bluePrimaryY
            this.greenPrimaryX = x.greenPrimaryX
            this.greenPrimaryY = x.greenPrimaryY
            this.maxContentLightLevel = x.maxContentLightLevel
            this.maxFrameAverageLightLevel = x.maxFrameAverageLightLevel
            this.maxLuminance = x.maxLuminance
            this.minLuminance = x.minLuminance
            this.redPrimaryX = x.redPrimaryX
            this.redPrimaryY = x.redPrimaryY
            this.whitePointX = x.whitePointX
            this.whitePointY = x.whitePointY
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.Hdr10Metadata = Hdr10Metadata(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy