pub struct EncoderConfigBuilder { /* private fields */ }Expand description
Consuming builder for EncoderConfig.
Obtain via EncoderConfig::builder.
Implementations§
Source§impl EncoderConfigBuilder
impl EncoderConfigBuilder
Sourcepub fn video_codec(self, codec: VideoCodec) -> Self
pub fn video_codec(self, codec: VideoCodec) -> Self
Sets the video codec.
Sourcepub fn audio_codec(self, codec: AudioCodec) -> Self
pub fn audio_codec(self, codec: AudioCodec) -> Self
Sets the audio codec.
Sourcepub fn bitrate_mode(self, mode: BitrateMode) -> Self
pub fn bitrate_mode(self, mode: BitrateMode) -> Self
Sets the bitrate control mode.
Sourcepub fn resolution(self, width: u32, height: u32) -> Self
pub fn resolution(self, width: u32, height: u32) -> Self
Sets the output resolution in pixels.
Sourcepub fn build(self) -> EncoderConfig
pub fn build(self) -> EncoderConfig
Builds the EncoderConfig. Never fails; returns the config directly.
Auto Trait Implementations§
impl Freeze for EncoderConfigBuilder
impl RefUnwindSafe for EncoderConfigBuilder
impl Send for EncoderConfigBuilder
impl Sync for EncoderConfigBuilder
impl Unpin for EncoderConfigBuilder
impl UnsafeUnpin for EncoderConfigBuilder
impl UnwindSafe for EncoderConfigBuilder
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