[][src]Struct ac_ffmpeg::codec::video::scaler::VideoFrameScalerBuilder

pub struct VideoFrameScalerBuilder { /* fields omitted */ }

Builder for a video frame scaler.

Implementations

impl VideoFrameScalerBuilder[src]

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

Set source pixel format.

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

Set source frame width.

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

Set source frame height.

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

Set target pixel format. The default is equal to the source format.

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

Set target frame width.

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

Set target frame height.

pub fn algorithm(self, algorithm: Algorithm) -> Self[src]

Set scaling algorithm. The default is bicubic.

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

Build the video frame scaler.

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.