#[non_exhaustive]pub struct XavcHdProfileSettingsBuilder { /* private fields */ }
Expand description
A builder for XavcHdProfileSettings
.
Implementations§
source§impl XavcHdProfileSettingsBuilder
impl XavcHdProfileSettingsBuilder
sourcepub fn bitrate_class(self, input: XavcHdProfileBitrateClass) -> Self
pub fn bitrate_class(self, input: XavcHdProfileBitrateClass) -> Self
Specify the XAVC HD (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<XavcHdProfileBitrateClass>) -> Self
pub fn set_bitrate_class(self, input: Option<XavcHdProfileBitrateClass>) -> Self
Specify the XAVC HD (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<XavcHdProfileBitrateClass>
pub fn get_bitrate_class(&self) -> &Option<XavcHdProfileBitrateClass>
Specify the XAVC HD (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 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 interlace_mode(self, input: XavcInterlaceMode) -> Self
pub fn interlace_mode(self, input: XavcInterlaceMode) -> Self
Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that’s interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
sourcepub fn set_interlace_mode(self, input: Option<XavcInterlaceMode>) -> Self
pub fn set_interlace_mode(self, input: Option<XavcInterlaceMode>) -> Self
Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that’s interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
sourcepub fn get_interlace_mode(&self) -> &Option<XavcInterlaceMode>
pub fn get_interlace_mode(&self) -> &Option<XavcInterlaceMode>
Choose the scan line type for the output. Keep the default value, Progressive to create a progressive output, regardless of the scan type of your input. Use Top field first or Bottom field first to create an output that’s interlaced with the same field polarity throughout. Use Follow, default top or Follow, default bottom to produce outputs with the same field polarity as the source. For jobs that have multiple inputs, the output field polarity might change over the course of the output. Follow behavior depends on the input scan type. If the source is interlaced, the output will be interlaced with the same polarity as the source. If the source is progressive, the output will be interlaced with top field bottom field first, depending on which of the Follow options you choose.
sourcepub fn quality_tuning_level(
self,
input: XavcHdProfileQualityTuningLevel
) -> Self
pub fn quality_tuning_level( self, input: XavcHdProfileQualityTuningLevel ) -> 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<XavcHdProfileQualityTuningLevel>
) -> Self
pub fn set_quality_tuning_level( self, input: Option<XavcHdProfileQualityTuningLevel> ) -> 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<XavcHdProfileQualityTuningLevel>
pub fn get_quality_tuning_level( &self ) -> &Option<XavcHdProfileQualityTuningLevel>
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 telecine(self, input: XavcHdProfileTelecine) -> Self
pub fn telecine(self, input: XavcHdProfileTelecine) -> Self
Ignore this setting unless you set Frame rate (framerateNumerator divided by framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard. Otherwise, keep the default value None. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-telecine-and-inverse-telecine.html.
sourcepub fn set_telecine(self, input: Option<XavcHdProfileTelecine>) -> Self
pub fn set_telecine(self, input: Option<XavcHdProfileTelecine>) -> Self
Ignore this setting unless you set Frame rate (framerateNumerator divided by framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard. Otherwise, keep the default value None. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-telecine-and-inverse-telecine.html.
sourcepub fn get_telecine(&self) -> &Option<XavcHdProfileTelecine>
pub fn get_telecine(&self) -> &Option<XavcHdProfileTelecine>
Ignore this setting unless you set Frame rate (framerateNumerator divided by framerateDenominator) to 29.970. If your input framerate is 23.976, choose Hard. Otherwise, keep the default value None. For more information, see https://docs.aws.amazon.com/mediaconvert/latest/ug/working-with-telecine-and-inverse-telecine.html.
sourcepub fn build(self) -> XavcHdProfileSettings
pub fn build(self) -> XavcHdProfileSettings
Consumes the builder and constructs a XavcHdProfileSettings
.
Trait Implementations§
source§impl Clone for XavcHdProfileSettingsBuilder
impl Clone for XavcHdProfileSettingsBuilder
source§fn clone(&self) -> XavcHdProfileSettingsBuilder
fn clone(&self) -> XavcHdProfileSettingsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for XavcHdProfileSettingsBuilder
impl Debug for XavcHdProfileSettingsBuilder
source§impl Default for XavcHdProfileSettingsBuilder
impl Default for XavcHdProfileSettingsBuilder
source§fn default() -> XavcHdProfileSettingsBuilder
fn default() -> XavcHdProfileSettingsBuilder
source§impl PartialEq for XavcHdProfileSettingsBuilder
impl PartialEq for XavcHdProfileSettingsBuilder
source§fn eq(&self, other: &XavcHdProfileSettingsBuilder) -> bool
fn eq(&self, other: &XavcHdProfileSettingsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for XavcHdProfileSettingsBuilder
Auto Trait Implementations§
impl Freeze for XavcHdProfileSettingsBuilder
impl RefUnwindSafe for XavcHdProfileSettingsBuilder
impl Send for XavcHdProfileSettingsBuilder
impl Sync for XavcHdProfileSettingsBuilder
impl Unpin for XavcHdProfileSettingsBuilder
impl UnwindSafe for XavcHdProfileSettingsBuilder
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