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

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

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

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

import kotlin.collections.List

/**
 * Specify how MediaConvert maps brightness and colors from your HDR input to your SDR output. The mode that you select represents a creative choice, with different tradeoffs in the details and tones of your output. To maintain details in bright or saturated areas of your output: Choose Preserve details. For some sources, your SDR output may look less bright and less saturated when compared to your HDR source. MediaConvert automatically applies this mode for HLG sources, regardless of your choice. For a bright and saturated output: Choose Vibrant. We recommend that you choose this mode when any of your source content is HDR10, and for the best results when it is mastered for 1000 nits. You may notice loss of details in bright or saturated areas of your output. HDR to SDR tone mapping has no effect when your input is SDR.
 */
public sealed class HdrToSdrToneMapper {
    public abstract val value: kotlin.String

    public object PreserveDetails : aws.sdk.kotlin.services.mediaconvert.model.HdrToSdrToneMapper() {
        override val value: kotlin.String = "PRESERVE_DETAILS"
        override fun toString(): kotlin.String = "PreserveDetails"
    }

    public object Vibrant : aws.sdk.kotlin.services.mediaconvert.model.HdrToSdrToneMapper() {
        override val value: kotlin.String = "VIBRANT"
        override fun toString(): kotlin.String = "Vibrant"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.HdrToSdrToneMapper() {
        override fun toString(): kotlin.String = "SdkUnknown($value)"
    }

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(value: kotlin.String): aws.sdk.kotlin.services.mediaconvert.model.HdrToSdrToneMapper = when (value) {
            "PRESERVE_DETAILS" -> PreserveDetails
            "VIBRANT" -> Vibrant
            else -> SdkUnknown(value)
        }

        /**
         * Get a list of all possible variants
         */
        public fun values(): kotlin.collections.List = values

        private val values: kotlin.collections.List = listOf(
            PreserveDetails,
            Vibrant,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy