
commonMain.aws.sdk.kotlin.services.mediaconvert.model.DashIsoPtsOffsetHandlingForBFrames.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 this setting only when your output video stream has B-frames, which causes the initial presentation time stamp (PTS) to be offset from the initial decode time stamp (DTS). Specify how MediaConvert handles PTS when writing time stamps in output DASH manifests. Choose Match initial PTS when you want MediaConvert to use the initial PTS as the first time stamp in the manifest. Choose Zero-based to have MediaConvert ignore the initial PTS in the video stream and instead write the initial time stamp as zero in the manifest. For outputs that don't have B-frames, the time stamps in your DASH manifests start at zero regardless of your choice here.
*/
public sealed class DashIsoPtsOffsetHandlingForBFrames {
public abstract val value: kotlin.String
public object MatchInitialPts : aws.sdk.kotlin.services.mediaconvert.model.DashIsoPtsOffsetHandlingForBFrames() {
override val value: kotlin.String = "MATCH_INITIAL_PTS"
override fun toString(): kotlin.String = "MatchInitialPts"
}
public object ZeroBased : aws.sdk.kotlin.services.mediaconvert.model.DashIsoPtsOffsetHandlingForBFrames() {
override val value: kotlin.String = "ZERO_BASED"
override fun toString(): kotlin.String = "ZeroBased"
}
public data class SdkUnknown(override val value: kotlin.String) : aws.sdk.kotlin.services.mediaconvert.model.DashIsoPtsOffsetHandlingForBFrames() {
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.DashIsoPtsOffsetHandlingForBFrames = when (value) {
"MATCH_INITIAL_PTS" -> MatchInitialPts
"ZERO_BASED" -> ZeroBased
else -> SdkUnknown(value)
}
/**
* Get a list of all possible variants
*/
public fun values(): kotlin.collections.List = values
private val values: kotlin.collections.List = listOf(
MatchInitialPts,
ZeroBased,
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy