#[non_exhaustive]pub struct Xavc4kProfileSettingsBuilder { /* private fields */ }
Expand description
A builder for Xavc4kProfileSettings
.
Implementations§
source§impl Xavc4kProfileSettingsBuilder
impl Xavc4kProfileSettingsBuilder
sourcepub fn bitrate_class(self, input: Xavc4kProfileBitrateClass) -> Self
pub fn bitrate_class(self, input: Xavc4kProfileBitrateClass) -> Self
Specify the XAVC 4k (Long GOP) Bitrate Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
sourcepub fn set_bitrate_class(self, input: Option<Xavc4kProfileBitrateClass>) -> Self
pub fn set_bitrate_class(self, input: Option<Xavc4kProfileBitrateClass>) -> Self
Specify the XAVC 4k (Long GOP) Bitrate Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
sourcepub fn get_bitrate_class(&self) -> &Option<Xavc4kProfileBitrateClass>
pub fn get_bitrate_class(&self) -> &Option<Xavc4kProfileBitrateClass>
Specify the XAVC 4k (Long GOP) Bitrate Class to set the bitrate of your output. Outputs of the same class have similar image quality over the operating points that are valid for that class.
sourcepub fn codec_profile(self, input: Xavc4kProfileCodecProfile) -> Self
pub fn codec_profile(self, input: Xavc4kProfileCodecProfile) -> Self
Specify the codec profile for this output. Choose High, 8-bit, 4:2:0 (HIGH) or High, 10-bit, 4:2:2 (HIGH_422). These profiles are specified in ITU-T H.264.
sourcepub fn set_codec_profile(self, input: Option<Xavc4kProfileCodecProfile>) -> Self
pub fn set_codec_profile(self, input: Option<Xavc4kProfileCodecProfile>) -> Self
Specify the codec profile for this output. Choose High, 8-bit, 4:2:0 (HIGH) or High, 10-bit, 4:2:2 (HIGH_422). These profiles are specified in ITU-T H.264.
sourcepub fn get_codec_profile(&self) -> &Option<Xavc4kProfileCodecProfile>
pub fn get_codec_profile(&self) -> &Option<Xavc4kProfileCodecProfile>
Specify the codec profile for this output. Choose High, 8-bit, 4:2:0 (HIGH) or High, 10-bit, 4:2:2 (HIGH_422). These profiles are specified in ITU-T H.264.
sourcepub fn flicker_adaptive_quantization(
self,
input: XavcFlickerAdaptiveQuantization
) -> Self
pub fn flicker_adaptive_quantization( self, input: XavcFlickerAdaptiveQuantization ) -> Self
The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set Adaptive quantization to a value other than Off or Auto. Use Adaptive quantization to adjust the degree of smoothing that Flicker adaptive quantization provides.
sourcepub fn set_flicker_adaptive_quantization(
self,
input: Option<XavcFlickerAdaptiveQuantization>
) -> Self
pub fn set_flicker_adaptive_quantization( self, input: Option<XavcFlickerAdaptiveQuantization> ) -> Self
The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set Adaptive quantization to a value other than Off or Auto. Use Adaptive quantization to adjust the degree of smoothing that Flicker adaptive quantization provides.
sourcepub fn get_flicker_adaptive_quantization(
&self
) -> &Option<XavcFlickerAdaptiveQuantization>
pub fn get_flicker_adaptive_quantization( &self ) -> &Option<XavcFlickerAdaptiveQuantization>
The best way to set up adaptive quantization is to keep the default value, Auto, for the setting Adaptive quantization. When you do so, MediaConvert automatically applies the best types of quantization for your video content. Include this setting in your JSON job specification only when you choose to change the default value for Adaptive quantization. Enable this setting to have the encoder reduce I-frame pop. I-frame pop appears as a visual flicker that can arise when the encoder saves bits by copying some macroblocks many times from frame to frame, and then refreshes them at the I-frame. When you enable this setting, the encoder updates these macroblocks slightly more often to smooth out the flicker. This setting is disabled by default. Related setting: In addition to enabling this setting, you must also set Adaptive quantization to a value other than Off or Auto. Use Adaptive quantization to adjust the degree of smoothing that Flicker adaptive quantization provides.
sourcepub fn gop_b_reference(self, input: XavcGopBReference) -> Self
pub fn gop_b_reference(self, input: XavcGopBReference) -> Self
Specify whether the encoder uses B-frames as reference frames for other pictures in the same GOP. Choose Allow to allow the encoder to use B-frames as reference frames. Choose Don’t allow to prevent the encoder from using B-frames as reference frames.
sourcepub fn set_gop_b_reference(self, input: Option<XavcGopBReference>) -> Self
pub fn set_gop_b_reference(self, input: Option<XavcGopBReference>) -> Self
Specify whether the encoder uses B-frames as reference frames for other pictures in the same GOP. Choose Allow to allow the encoder to use B-frames as reference frames. Choose Don’t allow to prevent the encoder from using B-frames as reference frames.
sourcepub fn get_gop_b_reference(&self) -> &Option<XavcGopBReference>
pub fn get_gop_b_reference(&self) -> &Option<XavcGopBReference>
Specify whether the encoder uses B-frames as reference frames for other pictures in the same GOP. Choose Allow to allow the encoder to use B-frames as reference frames. Choose Don’t allow to prevent the encoder from using B-frames as reference frames.
sourcepub fn gop_closed_cadence(self, input: i32) -> Self
pub fn gop_closed_cadence(self, input: i32) -> Self
Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
sourcepub fn set_gop_closed_cadence(self, input: Option<i32>) -> Self
pub fn set_gop_closed_cadence(self, input: Option<i32>) -> Self
Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
sourcepub fn get_gop_closed_cadence(&self) -> &Option<i32>
pub fn get_gop_closed_cadence(&self) -> &Option<i32>
Frequency of closed GOPs. In streaming applications, it is recommended that this be set to 1 so a decoder joining mid-stream will receive an IDR frame as quickly as possible. Setting this value to 0 will break output segmenting.
sourcepub fn hrd_buffer_size(self, input: i32) -> Self
pub fn hrd_buffer_size(self, input: i32) -> Self
Specify the size of the buffer that MediaConvert uses in the HRD buffer model for this output. Specify this value in bits; for example, enter five megabits as 5000000. When you don’t set this value, or you set it to zero, MediaConvert calculates the default by doubling the bitrate of this output point.
sourcepub fn set_hrd_buffer_size(self, input: Option<i32>) -> Self
pub fn set_hrd_buffer_size(self, input: Option<i32>) -> Self
Specify the size of the buffer that MediaConvert uses in the HRD buffer model for this output. Specify this value in bits; for example, enter five megabits as 5000000. When you don’t set this value, or you set it to zero, MediaConvert calculates the default by doubling the bitrate of this output point.
sourcepub fn get_hrd_buffer_size(&self) -> &Option<i32>
pub fn get_hrd_buffer_size(&self) -> &Option<i32>
Specify the size of the buffer that MediaConvert uses in the HRD buffer model for this output. Specify this value in bits; for example, enter five megabits as 5000000. When you don’t set this value, or you set it to zero, MediaConvert calculates the default by doubling the bitrate of this output point.
sourcepub fn quality_tuning_level(
self,
input: Xavc4kProfileQualityTuningLevel
) -> Self
pub fn quality_tuning_level( self, input: Xavc4kProfileQualityTuningLevel ) -> Self
Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
sourcepub fn set_quality_tuning_level(
self,
input: Option<Xavc4kProfileQualityTuningLevel>
) -> Self
pub fn set_quality_tuning_level( self, input: Option<Xavc4kProfileQualityTuningLevel> ) -> Self
Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
sourcepub fn get_quality_tuning_level(
&self
) -> &Option<Xavc4kProfileQualityTuningLevel>
pub fn get_quality_tuning_level( &self ) -> &Option<Xavc4kProfileQualityTuningLevel>
Optional. Use Quality tuning level to choose how you want to trade off encoding speed for output video quality. The default behavior is faster, lower quality, single-pass encoding.
sourcepub fn slices(self, input: i32) -> Self
pub fn slices(self, input: i32) -> Self
Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
sourcepub fn set_slices(self, input: Option<i32>) -> Self
pub fn set_slices(self, input: Option<i32>) -> Self
Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
sourcepub fn get_slices(&self) -> &Option<i32>
pub fn get_slices(&self) -> &Option<i32>
Number of slices per picture. Must be less than or equal to the number of macroblock rows for progressive pictures, and less than or equal to half the number of macroblock rows for interlaced pictures.
sourcepub fn build(self) -> Xavc4kProfileSettings
pub fn build(self) -> Xavc4kProfileSettings
Consumes the builder and constructs a Xavc4kProfileSettings
.
Trait Implementations§
source§impl Clone for Xavc4kProfileSettingsBuilder
impl Clone for Xavc4kProfileSettingsBuilder
source§fn clone(&self) -> Xavc4kProfileSettingsBuilder
fn clone(&self) -> Xavc4kProfileSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Xavc4kProfileSettingsBuilder
impl Debug for Xavc4kProfileSettingsBuilder
source§impl Default for Xavc4kProfileSettingsBuilder
impl Default for Xavc4kProfileSettingsBuilder
source§fn default() -> Xavc4kProfileSettingsBuilder
fn default() -> Xavc4kProfileSettingsBuilder
source§impl PartialEq for Xavc4kProfileSettingsBuilder
impl PartialEq for Xavc4kProfileSettingsBuilder
source§fn eq(&self, other: &Xavc4kProfileSettingsBuilder) -> bool
fn eq(&self, other: &Xavc4kProfileSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Xavc4kProfileSettingsBuilder
Auto Trait Implementations§
impl Freeze for Xavc4kProfileSettingsBuilder
impl RefUnwindSafe for Xavc4kProfileSettingsBuilder
impl Send for Xavc4kProfileSettingsBuilder
impl Sync for Xavc4kProfileSettingsBuilder
impl Unpin for Xavc4kProfileSettingsBuilder
impl UnwindSafe for Xavc4kProfileSettingsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more