[][src]Struct ac_ffmpeg::codec::video::VideoEncoderBuilder

pub struct VideoEncoderBuilder { /* fields omitted */ }

Builder for the video encoder.

Implementations

impl VideoEncoderBuilder[src]

pub fn set_option<V>(self, name: &str, value: V) -> Self where
    V: ToString
[src]

Set an encoder option.

pub fn bit_rate(self, bit_rate: u64) -> Self[src]

Set encoder bit rate. The default is 0 (i.e. automatic).

pub fn time_base(self, time_base: TimeBase) -> Self[src]

Set encoder time base. The default time base is in microseconds.

pub fn pixel_format(self, format: PixelFormat) -> Self[src]

Set encoder pixel format.

pub fn width(self, width: usize) -> Self[src]

Set frame width.

pub fn height(self, height: usize) -> Self[src]

Set frame height.

pub fn build(self) -> Result<VideoEncoder, Error>[src]

Build the encoder.

Trait Implementations

impl Drop for VideoEncoderBuilder[src]

impl Send for VideoEncoderBuilder[src]

impl Sync for VideoEncoderBuilder[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.