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

com.pulumi.azurenative.media.kotlin.enums.VideoSyncMode.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azurenative.media.kotlin.enums

import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress

/**
 * The Video Sync Mode
 */
public enum class VideoSyncMode(
    public val javaValue: com.pulumi.azurenative.media.enums.VideoSyncMode,
) : ConvertibleToJava {
    /**
     * This is the default method. Chooses between Cfr and Vfr depending on muxer capabilities. For output format MP4, the default mode is Cfr.
     */
    Auto(com.pulumi.azurenative.media.enums.VideoSyncMode.Auto),

    /**
     * The presentation timestamps on frames are passed through from the input file to the output file writer. Recommended when the input source has variable frame rate, and are attempting to produce multiple layers for adaptive streaming in the output which have aligned GOP boundaries. Note: if two or more frames in the input have duplicate timestamps, then the output will also have the same behavior
     */
    Passthrough(com.pulumi.azurenative.media.enums.VideoSyncMode.Passthrough),

    /**
     * Input frames will be repeated and/or dropped as needed to achieve exactly the requested constant frame rate. Recommended when the output frame rate is explicitly set at a specified value
     */
    Cfr(com.pulumi.azurenative.media.enums.VideoSyncMode.Cfr),

    /**
     * Similar to the Passthrough mode, but if the input has frames that have duplicate timestamps, then only one frame is passed through to the output, and others are dropped. Recommended when the number of output frames is expected to be equal to the number of input frames. For example, the output is used to calculate a quality metric like PSNR against the input
     */
    Vfr(com.pulumi.azurenative.media.enums.VideoSyncMode.Vfr),
    ;

    override fun toJava(): com.pulumi.azurenative.media.enums.VideoSyncMode = javaValue

    public companion object {
        public fun toKotlin(javaType: com.pulumi.azurenative.media.enums.VideoSyncMode): VideoSyncMode =
            VideoSyncMode.values().first { it.javaValue == javaType }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy