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 ==
.impl StructuralPartialEq for EncodingParameters
Auto Trait Implementations§
impl Freeze for EncodingParameters
impl RefUnwindSafe for EncodingParameters
impl Send for EncodingParameters
impl Sync for EncodingParameters
impl Unpin for EncodingParameters
impl UnwindSafe for EncodingParameters
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