Struct openh264::encoder::EncoderConfig
source · pub struct EncoderConfig { /* private fields */ }Expand description
Configuration for the Encoder.
Setting missing? Please file a PR!
Implementations§
source§impl EncoderConfig
impl EncoderConfig
sourcepub fn set_bitrate_bps(self, bps: u32) -> Self
pub fn set_bitrate_bps(self, bps: u32) -> Self
Sets the requested bit rate in bits per second.
sourcepub fn enable_skip_frame(self, value: bool) -> Self
pub fn enable_skip_frame(self, value: bool) -> Self
Set whether frames can be skipped to meet desired rate control target.
sourcepub fn max_frame_rate(self, value: f32) -> Self
pub fn max_frame_rate(self, value: f32) -> Self
Sets the requested maximum frame rate in Hz.
sourcepub fn rate_control_mode(self, value: RateControlMode) -> Self
pub fn rate_control_mode(self, value: RateControlMode) -> Self
Sets the requested rate control mode.
Trait Implementations§
source§impl Clone for EncoderConfig
impl Clone for EncoderConfig
source§fn clone(&self) -> EncoderConfig
fn clone(&self) -> EncoderConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EncoderConfig
impl Debug for EncoderConfig
source§impl Default for EncoderConfig
impl Default for EncoderConfig
source§fn default() -> EncoderConfig
fn default() -> EncoderConfig
Returns the “default value” for a type. Read more
impl Copy for EncoderConfig
Auto Trait Implementations§
impl Freeze for EncoderConfig
impl RefUnwindSafe for EncoderConfig
impl Send for EncoderConfig
impl Sync for EncoderConfig
impl Unpin for EncoderConfig
impl UnwindSafe for EncoderConfig
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
Mutably borrows from an owned value. Read more