Struct aws_sdk_mediaconnect::types::EncodingParameters
source · #[non_exhaustive]pub struct EncodingParameters {
pub compression_factor: Option<f64>,
pub encoder_profile: Option<EncoderProfile>,
}Expand description
A collection of parameters that determine how MediaConnect will convert the content. These fields only apply to outputs on flows that have a CDI source.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.compression_factor: Option<f64>A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are floating point numbers in the range of 3.0 to 10.0, inclusive.
encoder_profile: Option<EncoderProfile>A setting on the encoder that drives compression settings. This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol.
Implementations§
source§impl EncodingParameters
impl EncodingParameters
sourcepub fn compression_factor(&self) -> Option<f64>
pub fn compression_factor(&self) -> Option<f64>
A value that is used to calculate compression for an output. The bitrate of the output is calculated as follows: Output bitrate = (1 / compressionFactor) * (source bitrate) This property only applies to outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol. Valid values are floating point numbers in the range of 3.0 to 10.0, inclusive.
sourcepub fn encoder_profile(&self) -> Option<&EncoderProfile>
pub fn encoder_profile(&self) -> Option<&EncoderProfile>
A setting on the encoder that drives compression settings. This property only applies to video media streams associated with outputs that use the ST 2110 JPEG XS protocol, with a flow source that uses the CDI protocol.
source§impl EncodingParameters
impl EncodingParameters
sourcepub fn builder() -> EncodingParametersBuilder
pub fn builder() -> EncodingParametersBuilder
Creates a new builder-style object to manufacture EncodingParameters.
Trait Implementations§
source§impl Clone for EncodingParameters
impl Clone for EncodingParameters
source§fn clone(&self) -> EncodingParameters
fn clone(&self) -> EncodingParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EncodingParameters
impl Debug for EncodingParameters
source§impl PartialEq for EncodingParameters
impl PartialEq for EncodingParameters
source§fn eq(&self, other: &EncodingParameters) -> bool
fn eq(&self, other: &EncodingParameters) -> bool
self and other values to be equal, and is used
by ==.