#[non_exhaustive]pub struct EncodingParametersBuilder { /* private fields */ }
Expand description
A builder for EncodingParameters
.
Implementations§
source§impl EncodingParametersBuilder
impl EncodingParametersBuilder
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, with a flow source that 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, with a flow source that 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, with a flow source that uses the CDI protocol.
sourcepub fn build(self) -> EncodingParameters
pub fn build(self) -> EncodingParameters
Consumes the builder and constructs a EncodingParameters
.
Trait Implementations§
source§impl Clone for EncodingParametersBuilder
impl Clone for EncodingParametersBuilder
source§fn clone(&self) -> EncodingParametersBuilder
fn clone(&self) -> EncodingParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EncodingParametersBuilder
impl Debug for EncodingParametersBuilder
source§impl Default for EncodingParametersBuilder
impl Default for EncodingParametersBuilder
source§fn default() -> EncodingParametersBuilder
fn default() -> EncodingParametersBuilder
source§impl PartialEq for EncodingParametersBuilder
impl PartialEq for EncodingParametersBuilder
source§fn eq(&self, other: &EncodingParametersBuilder) -> bool
fn eq(&self, other: &EncodingParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for EncodingParametersBuilder
Auto Trait Implementations§
impl Freeze for EncodingParametersBuilder
impl RefUnwindSafe for EncodingParametersBuilder
impl Send for EncodingParametersBuilder
impl Sync for EncodingParametersBuilder
impl Unpin for EncodingParametersBuilder
impl UnwindSafe for EncodingParametersBuilder
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