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

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

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

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

import kotlin.collections.List

/**
 * Keep the default value, Enabled (ENABLED), to adjust quantization within each frame based on temporal variation of content complexity. When you enable this feature, the encoder uses fewer bits on areas of the frame that aren't moving and uses more bits on complex objects with sharp edges that move a lot. For example, this feature improves the readability of text tickers on newscasts and scoreboards on sports matches. Enabling this feature will almost always improve your video quality. Note, though, that this feature doesn't take into account where the viewer's attention is likely to be. If viewers are likely to be focusing their attention on a part of the screen that doesn't have moving objects with sharp edges, such as sports athletes' faces, you might choose to disable this feature. Related setting: When you enable temporal quantization, adjust the strength of the filter with the setting Adaptive quantization (adaptiveQuantization).
 */
public sealed class Mpeg2TemporalAdaptiveQuantization {

    public abstract val value: kotlin.String

    public object Disabled : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2TemporalAdaptiveQuantization() {
        override val value: kotlin.String = "DISABLED"
        override fun toString(): kotlin.String = value
    }

    public object Enabled : aws.sdk.kotlin.services.mediaconvert.model.Mpeg2TemporalAdaptiveQuantization() {
        override val value: kotlin.String = "ENABLED"
        override fun toString(): kotlin.String = value
    }

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

    public companion object {
        /**
         * Convert a raw value to one of the sealed variants or [SdkUnknown]
         */
        public fun fromValue(str: kotlin.String): aws.sdk.kotlin.services.mediaconvert.model.Mpeg2TemporalAdaptiveQuantization = when(str) {
            "DISABLED" -> Disabled
            "ENABLED" -> Enabled
            else -> SdkUnknown(str)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy