#[non_exhaustive]pub struct EncodingParametersRequestBuilder { /* private fields */ }
Expand description
A builder for EncodingParametersRequest
.
Implementations§
source§impl EncodingParametersRequestBuilder
impl EncodingParametersRequestBuilder
sourcepub fn compression_factor(self, input: f64) -> Self
pub fn compression_factor(self, input: f64) -> Self
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. This field is required.
sourcepub fn set_compression_factor(self, input: Option<f64>) -> Self
pub fn set_compression_factor(self, input: Option<f64>) -> Self
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 get_compression_factor(&self) -> &Option<f64>
pub fn get_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, input: EncoderProfile) -> Self
pub fn encoder_profile(self, input: EncoderProfile) -> Self
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. This field is required.
sourcepub fn set_encoder_profile(self, input: Option<EncoderProfile>) -> Self
pub fn set_encoder_profile(self, input: Option<EncoderProfile>) -> Self
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.
sourcepub fn get_encoder_profile(&self) -> &Option<EncoderProfile>
pub fn get_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.
sourcepub fn build(self) -> EncodingParametersRequest
pub fn build(self) -> EncodingParametersRequest
Consumes the builder and constructs a EncodingParametersRequest
.
Trait Implementations§
source§impl Clone for EncodingParametersRequestBuilder
impl Clone for EncodingParametersRequestBuilder
source§fn clone(&self) -> EncodingParametersRequestBuilder
fn clone(&self) -> EncodingParametersRequestBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for EncodingParametersRequestBuilder
impl Default for EncodingParametersRequestBuilder
source§fn default() -> EncodingParametersRequestBuilder
fn default() -> EncodingParametersRequestBuilder
source§impl PartialEq for EncodingParametersRequestBuilder
impl PartialEq for EncodingParametersRequestBuilder
source§fn eq(&self, other: &EncodingParametersRequestBuilder) -> bool
fn eq(&self, other: &EncodingParametersRequestBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EncodingParametersRequestBuilder
Auto Trait Implementations§
impl Freeze for EncodingParametersRequestBuilder
impl RefUnwindSafe for EncodingParametersRequestBuilder
impl Send for EncodingParametersRequestBuilder
impl Sync for EncodingParametersRequestBuilder
impl Unpin for EncodingParametersRequestBuilder
impl UnwindSafe for EncodingParametersRequestBuilder
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