#[non_exhaustive]pub struct EncodingParametersRequest {
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, if at least one source on the flow uses the CDI protocol.
Implementations§
source§impl EncodingParametersRequest
impl EncodingParametersRequest
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, if at least one source on the flow uses the CDI protocol.
source§impl EncodingParametersRequest
impl EncodingParametersRequest
sourcepub fn builder() -> EncodingParametersRequestBuilder
pub fn builder() -> EncodingParametersRequestBuilder
Creates a new builder-style object to manufacture EncodingParametersRequest.
Trait Implementations§
source§impl Clone for EncodingParametersRequest
impl Clone for EncodingParametersRequest
source§fn clone(&self) -> EncodingParametersRequest
fn clone(&self) -> EncodingParametersRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for EncodingParametersRequest
impl Debug for EncodingParametersRequest
source§impl PartialEq for EncodingParametersRequest
impl PartialEq for EncodingParametersRequest
source§fn eq(&self, other: &EncodingParametersRequest) -> bool
fn eq(&self, other: &EncodingParametersRequest) -> bool
self and other values to be equal, and is used
by ==.