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

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

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

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

import kotlin.collections.List

/**
 * Use Deinterlacer to choose how the service will do deinterlacing. Default is Deinterlace. - Deinterlace converts interlaced to progressive. - Inverse telecine converts Hard Telecine 29.97i to progressive 23.976p. - Adaptive auto-detects and converts to progressive.
 */
public sealed class DeinterlacerMode {
    public abstract val value: kotlin.String

    public object Adaptive : aws.sdk.kotlin.services.mediaconvert.model.DeinterlacerMode() {
        override val value: kotlin.String = "ADAPTIVE"
        override fun toString(): kotlin.String = "Adaptive"
    }

    public object Deinterlace : aws.sdk.kotlin.services.mediaconvert.model.DeinterlacerMode() {
        override val value: kotlin.String = "DEINTERLACE"
        override fun toString(): kotlin.String = "Deinterlace"
    }

    public object InverseTelecine : aws.sdk.kotlin.services.mediaconvert.model.DeinterlacerMode() {
        override val value: kotlin.String = "INVERSE_TELECINE"
        override fun toString(): kotlin.String = "InverseTelecine"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.DeinterlacerMode() {
        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.DeinterlacerMode = when (value) {
            "ADAPTIVE" -> Adaptive
            "DEINTERLACE" -> Deinterlace
            "INVERSE_TELECINE" -> InverseTelecine
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Adaptive,
            Deinterlace,
            InverseTelecine,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy