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

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

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

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

import kotlin.collections.List

/**
 * Only applies when you set Deinterlace mode to Deinterlace or Adaptive. Interpolate produces sharper pictures, while blend produces smoother motion. If your source file includes a ticker, such as a scrolling headline at the bottom of the frame: Choose Interpolate ticker or Blend ticker. To apply field doubling: Choose Linear interpolation. Note that Linear interpolation may introduce video artifacts into your output.
 */
public sealed class DeinterlaceAlgorithm {
    public abstract val value: kotlin.String

    public object Blend : aws.sdk.kotlin.services.mediaconvert.model.DeinterlaceAlgorithm() {
        override val value: kotlin.String = "BLEND"
        override fun toString(): kotlin.String = "Blend"
    }

    public object BlendTicker : aws.sdk.kotlin.services.mediaconvert.model.DeinterlaceAlgorithm() {
        override val value: kotlin.String = "BLEND_TICKER"
        override fun toString(): kotlin.String = "BlendTicker"
    }

    public object Interpolate : aws.sdk.kotlin.services.mediaconvert.model.DeinterlaceAlgorithm() {
        override val value: kotlin.String = "INTERPOLATE"
        override fun toString(): kotlin.String = "Interpolate"
    }

    public object InterpolateTicker : aws.sdk.kotlin.services.mediaconvert.model.DeinterlaceAlgorithm() {
        override val value: kotlin.String = "INTERPOLATE_TICKER"
        override fun toString(): kotlin.String = "InterpolateTicker"
    }

    public object LinearInterpolation : aws.sdk.kotlin.services.mediaconvert.model.DeinterlaceAlgorithm() {
        override val value: kotlin.String = "LINEAR_INTERPOLATION"
        override fun toString(): kotlin.String = "LinearInterpolation"
    }

    public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.DeinterlaceAlgorithm() {
        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.DeinterlaceAlgorithm = when (value) {
            "BLEND" -> Blend
            "BLEND_TICKER" -> BlendTicker
            "INTERPOLATE" -> Interpolate
            "INTERPOLATE_TICKER" -> InterpolateTicker
            "LINEAR_INTERPOLATION" -> LinearInterpolation
            else -> SdkUnknown(value)
        }

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

        private val values: kotlin.collections.List = listOf(
            Blend,
            BlendTicker,
            Interpolate,
            InterpolateTicker,
            LinearInterpolation,
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy