[−][src]Struct ac_ffmpeg::codec::video::scaler::VideoFrameScalerBuilder
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
impl RefUnwindSafe for VideoFrameScalerBuilder
impl Send for VideoFrameScalerBuilder
impl Sync for VideoFrameScalerBuilder
impl Unpin for VideoFrameScalerBuilder
impl UnwindSafe for VideoFrameScalerBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,