pub struct VideoEncoderBuilder { /* private fields */ }
Expand description
Builder for the video encoder.
Implementations§
Source§impl VideoEncoderBuilder
impl VideoEncoderBuilder
Sourcepub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
pub fn set_option<V>(self, name: &str, value: V) -> Selfwhere
V: ToString,
Set an encoder option.
Sourcepub fn bit_rate(self, bit_rate: u64) -> Self
pub fn bit_rate(self, bit_rate: u64) -> Self
Set encoder bit rate. The default is 0 (i.e. automatic).
Sourcepub fn time_base(self, time_base: TimeBase) -> Self
pub fn time_base(self, time_base: TimeBase) -> Self
Set encoder time base. The default time base is in microseconds.
Sourcepub fn pixel_format(self, format: PixelFormat) -> Self
pub fn pixel_format(self, format: PixelFormat) -> Self
Set encoder pixel format.
Sourcepub fn build(self) -> Result<VideoEncoder, Error>
pub fn build(self) -> Result<VideoEncoder, Error>
Build the encoder.
Trait Implementations§
Source§impl Drop for VideoEncoderBuilder
impl Drop for VideoEncoderBuilder
impl Send for VideoEncoderBuilder
impl Sync for VideoEncoderBuilder
Auto Trait Implementations§
impl Freeze for VideoEncoderBuilder
impl RefUnwindSafe for VideoEncoderBuilder
impl Unpin for VideoEncoderBuilder
impl UnwindSafe for VideoEncoderBuilder
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