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