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

commonMain.aws.sdk.kotlin.services.medialive.model.Ac3Settings.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.medialive.model



/**
 * Ac3 Settings
 */
public class Ac3Settings private constructor(builder: Builder) {
    /**
     * Average bitrate in bits/second. Valid bitrates depend on the coding mode.
     */
    public val bitrate: kotlin.Double = builder.bitrate
    /**
     * Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. See ATSC A/52-2012 for background on these values.
     */
    public val bitstreamMode: aws.sdk.kotlin.services.medialive.model.Ac3BitstreamMode? = builder.bitstreamMode
    /**
     * Dolby Digital coding mode. Determines number of channels.
     */
    public val codingMode: aws.sdk.kotlin.services.medialive.model.Ac3CodingMode? = builder.codingMode
    /**
     * Sets the dialnorm for the output. If excluded and input audio is Dolby Digital, dialnorm will be passed through.
     */
    public val dialnorm: kotlin.Int = builder.dialnorm
    /**
     * If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification.
     */
    public val drcProfile: aws.sdk.kotlin.services.medialive.model.Ac3DrcProfile? = builder.drcProfile
    /**
     * When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid in codingMode32Lfe mode.
     */
    public val lfeFilter: aws.sdk.kotlin.services.medialive.model.Ac3LfeFilter? = builder.lfeFilter
    /**
     * When set to "followInput", encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.
     */
    public val metadataControl: aws.sdk.kotlin.services.medialive.model.Ac3MetadataControl? = builder.metadataControl

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

    override fun toString(): kotlin.String = buildString {
        append("Ac3Settings(")
        append("bitrate=$bitrate,")
        append("bitstreamMode=$bitstreamMode,")
        append("codingMode=$codingMode,")
        append("dialnorm=$dialnorm,")
        append("drcProfile=$drcProfile,")
        append("lfeFilter=$lfeFilter,")
        append("metadataControl=$metadataControl")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = bitrate.hashCode()
        result = 31 * result + (bitstreamMode?.hashCode() ?: 0)
        result = 31 * result + (codingMode?.hashCode() ?: 0)
        result = 31 * result + (dialnorm)
        result = 31 * result + (drcProfile?.hashCode() ?: 0)
        result = 31 * result + (lfeFilter?.hashCode() ?: 0)
        result = 31 * result + (metadataControl?.hashCode() ?: 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 Ac3Settings

        if (bitrate != other.bitrate) return false
        if (bitstreamMode != other.bitstreamMode) return false
        if (codingMode != other.codingMode) return false
        if (dialnorm != other.dialnorm) return false
        if (drcProfile != other.drcProfile) return false
        if (lfeFilter != other.lfeFilter) return false
        if (metadataControl != other.metadataControl) return false

        return true
    }

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

    public class Builder {
        /**
         * Average bitrate in bits/second. Valid bitrates depend on the coding mode.
         */
        public var bitrate: kotlin.Double = 0.0
        /**
         * Specifies the bitstream mode (bsmod) for the emitted AC-3 stream. See ATSC A/52-2012 for background on these values.
         */
        public var bitstreamMode: aws.sdk.kotlin.services.medialive.model.Ac3BitstreamMode? = null
        /**
         * Dolby Digital coding mode. Determines number of channels.
         */
        public var codingMode: aws.sdk.kotlin.services.medialive.model.Ac3CodingMode? = null
        /**
         * Sets the dialnorm for the output. If excluded and input audio is Dolby Digital, dialnorm will be passed through.
         */
        public var dialnorm: kotlin.Int = 0
        /**
         * If set to filmStandard, adds dynamic range compression signaling to the output bitstream as defined in the Dolby Digital specification.
         */
        public var drcProfile: aws.sdk.kotlin.services.medialive.model.Ac3DrcProfile? = null
        /**
         * When set to enabled, applies a 120Hz lowpass filter to the LFE channel prior to encoding. Only valid in codingMode32Lfe mode.
         */
        public var lfeFilter: aws.sdk.kotlin.services.medialive.model.Ac3LfeFilter? = null
        /**
         * When set to "followInput", encoder metadata will be sourced from the DD, DD+, or DolbyE decoder that supplied this audio data. If audio was not supplied from one of these streams, then the static metadata settings will be used.
         */
        public var metadataControl: aws.sdk.kotlin.services.medialive.model.Ac3MetadataControl? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.medialive.model.Ac3Settings) : this() {
            this.bitrate = x.bitrate
            this.bitstreamMode = x.bitstreamMode
            this.codingMode = x.codingMode
            this.dialnorm = x.dialnorm
            this.drcProfile = x.drcProfile
            this.lfeFilter = x.lfeFilter
            this.metadataControl = x.metadataControl
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.medialive.model.Ac3Settings = Ac3Settings(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy