
commonMain.aws.sdk.kotlin.services.mediaconvert.model.VideoPreprocessor.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mediaconvert.model
/**
* Find additional transcoding features under Preprocessors. Enable the features at each output individually. These features are disabled by default.
*/
public class VideoPreprocessor private constructor(builder: Builder) {
/**
* Use these settings to convert the color space or to modify properties such as hue and contrast for this output. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/converting-the-color-space.html.
*/
public val colorCorrector: aws.sdk.kotlin.services.mediaconvert.model.ColorCorrector? = builder.colorCorrector
/**
* Use the deinterlacer to produce smoother motion and a clearer picture. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-scan-type.html.
*/
public val deinterlacer: aws.sdk.kotlin.services.mediaconvert.model.Deinterlacer? = builder.deinterlacer
/**
* Enable Dolby Vision feature to produce Dolby Vision compatible video output.
*/
public val dolbyVision: aws.sdk.kotlin.services.mediaconvert.model.DolbyVision? = builder.dolbyVision
/**
* Enable HDR10+ analysis and metadata injection. Compatible with HEVC only.
*/
public val hdr10Plus: aws.sdk.kotlin.services.mediaconvert.model.Hdr10Plus? = builder.hdr10Plus
/**
* Enable the Image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default.
*/
public val imageInserter: aws.sdk.kotlin.services.mediaconvert.model.ImageInserter? = builder.imageInserter
/**
* Enable the Noise reducer feature to remove noise from your video output if necessary. Enable or disable this feature for each output individually. This setting is disabled by default. When you enable Noise reducer, you must also select a value for Noise reducer filter. For AVC outputs, when you include Noise reducer, you cannot include the Bandwidth reduction filter.
*/
public val noiseReducer: aws.sdk.kotlin.services.mediaconvert.model.NoiseReducer? = builder.noiseReducer
/**
* If you work with a third party video watermarking partner, use the group of settings that correspond with your watermarking partner to include watermarks in your output.
*/
public val partnerWatermarking: aws.sdk.kotlin.services.mediaconvert.model.PartnerWatermarking? = builder.partnerWatermarking
/**
* Settings for burning the output timecode and specified prefix into the output.
*/
public val timecodeBurnin: aws.sdk.kotlin.services.mediaconvert.model.TimecodeBurnin? = builder.timecodeBurnin
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mediaconvert.model.VideoPreprocessor = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("VideoPreprocessor(")
append("colorCorrector=$colorCorrector,")
append("deinterlacer=$deinterlacer,")
append("dolbyVision=$dolbyVision,")
append("hdr10Plus=$hdr10Plus,")
append("imageInserter=$imageInserter,")
append("noiseReducer=$noiseReducer,")
append("partnerWatermarking=$partnerWatermarking,")
append("timecodeBurnin=$timecodeBurnin")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = colorCorrector?.hashCode() ?: 0
result = 31 * result + (deinterlacer?.hashCode() ?: 0)
result = 31 * result + (dolbyVision?.hashCode() ?: 0)
result = 31 * result + (hdr10Plus?.hashCode() ?: 0)
result = 31 * result + (imageInserter?.hashCode() ?: 0)
result = 31 * result + (noiseReducer?.hashCode() ?: 0)
result = 31 * result + (partnerWatermarking?.hashCode() ?: 0)
result = 31 * result + (timecodeBurnin?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as VideoPreprocessor
if (colorCorrector != other.colorCorrector) return false
if (deinterlacer != other.deinterlacer) return false
if (dolbyVision != other.dolbyVision) return false
if (hdr10Plus != other.hdr10Plus) return false
if (imageInserter != other.imageInserter) return false
if (noiseReducer != other.noiseReducer) return false
if (partnerWatermarking != other.partnerWatermarking) return false
if (timecodeBurnin != other.timecodeBurnin) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mediaconvert.model.VideoPreprocessor = Builder(this).apply(block).build()
public class Builder {
/**
* Use these settings to convert the color space or to modify properties such as hue and contrast for this output. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/converting-the-color-space.html.
*/
public var colorCorrector: aws.sdk.kotlin.services.mediaconvert.model.ColorCorrector? = null
/**
* Use the deinterlacer to produce smoother motion and a clearer picture. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-scan-type.html.
*/
public var deinterlacer: aws.sdk.kotlin.services.mediaconvert.model.Deinterlacer? = null
/**
* Enable Dolby Vision feature to produce Dolby Vision compatible video output.
*/
public var dolbyVision: aws.sdk.kotlin.services.mediaconvert.model.DolbyVision? = null
/**
* Enable HDR10+ analysis and metadata injection. Compatible with HEVC only.
*/
public var hdr10Plus: aws.sdk.kotlin.services.mediaconvert.model.Hdr10Plus? = null
/**
* Enable the Image inserter feature to include a graphic overlay on your video. Enable or disable this feature for each output individually. This setting is disabled by default.
*/
public var imageInserter: aws.sdk.kotlin.services.mediaconvert.model.ImageInserter? = null
/**
* Enable the Noise reducer feature to remove noise from your video output if necessary. Enable or disable this feature for each output individually. This setting is disabled by default. When you enable Noise reducer, you must also select a value for Noise reducer filter. For AVC outputs, when you include Noise reducer, you cannot include the Bandwidth reduction filter.
*/
public var noiseReducer: aws.sdk.kotlin.services.mediaconvert.model.NoiseReducer? = null
/**
* If you work with a third party video watermarking partner, use the group of settings that correspond with your watermarking partner to include watermarks in your output.
*/
public var partnerWatermarking: aws.sdk.kotlin.services.mediaconvert.model.PartnerWatermarking? = null
/**
* Settings for burning the output timecode and specified prefix into the output.
*/
public var timecodeBurnin: aws.sdk.kotlin.services.mediaconvert.model.TimecodeBurnin? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mediaconvert.model.VideoPreprocessor) : this() {
this.colorCorrector = x.colorCorrector
this.deinterlacer = x.deinterlacer
this.dolbyVision = x.dolbyVision
this.hdr10Plus = x.hdr10Plus
this.imageInserter = x.imageInserter
this.noiseReducer = x.noiseReducer
this.partnerWatermarking = x.partnerWatermarking
this.timecodeBurnin = x.timecodeBurnin
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mediaconvert.model.VideoPreprocessor = VideoPreprocessor(this)
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.ColorCorrector] inside the given [block]
*/
public fun colorCorrector(block: aws.sdk.kotlin.services.mediaconvert.model.ColorCorrector.Builder.() -> kotlin.Unit) {
this.colorCorrector = aws.sdk.kotlin.services.mediaconvert.model.ColorCorrector.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.Deinterlacer] inside the given [block]
*/
public fun deinterlacer(block: aws.sdk.kotlin.services.mediaconvert.model.Deinterlacer.Builder.() -> kotlin.Unit) {
this.deinterlacer = aws.sdk.kotlin.services.mediaconvert.model.Deinterlacer.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.DolbyVision] inside the given [block]
*/
public fun dolbyVision(block: aws.sdk.kotlin.services.mediaconvert.model.DolbyVision.Builder.() -> kotlin.Unit) {
this.dolbyVision = aws.sdk.kotlin.services.mediaconvert.model.DolbyVision.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.Hdr10Plus] inside the given [block]
*/
public fun hdr10Plus(block: aws.sdk.kotlin.services.mediaconvert.model.Hdr10Plus.Builder.() -> kotlin.Unit) {
this.hdr10Plus = aws.sdk.kotlin.services.mediaconvert.model.Hdr10Plus.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.ImageInserter] inside the given [block]
*/
public fun imageInserter(block: aws.sdk.kotlin.services.mediaconvert.model.ImageInserter.Builder.() -> kotlin.Unit) {
this.imageInserter = aws.sdk.kotlin.services.mediaconvert.model.ImageInserter.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.NoiseReducer] inside the given [block]
*/
public fun noiseReducer(block: aws.sdk.kotlin.services.mediaconvert.model.NoiseReducer.Builder.() -> kotlin.Unit) {
this.noiseReducer = aws.sdk.kotlin.services.mediaconvert.model.NoiseReducer.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.PartnerWatermarking] inside the given [block]
*/
public fun partnerWatermarking(block: aws.sdk.kotlin.services.mediaconvert.model.PartnerWatermarking.Builder.() -> kotlin.Unit) {
this.partnerWatermarking = aws.sdk.kotlin.services.mediaconvert.model.PartnerWatermarking.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.mediaconvert.model.TimecodeBurnin] inside the given [block]
*/
public fun timecodeBurnin(block: aws.sdk.kotlin.services.mediaconvert.model.TimecodeBurnin.Builder.() -> kotlin.Unit) {
this.timecodeBurnin = aws.sdk.kotlin.services.mediaconvert.model.TimecodeBurnin.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy