#[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.
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.
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 ==.