pub struct VideoFrameScalerBuilder { /* private fields */ }
Expand description
Builder for a video frame scaler.
Implementations§
Source§impl VideoFrameScalerBuilder
impl VideoFrameScalerBuilder
Sourcepub fn source_pixel_format(self, format: PixelFormat) -> Self
pub fn source_pixel_format(self, format: PixelFormat) -> Self
Set source pixel format.
Sourcepub fn source_width(self, width: usize) -> Self
pub fn source_width(self, width: usize) -> Self
Set source frame width.
Sourcepub fn source_height(self, height: usize) -> Self
pub fn source_height(self, height: usize) -> Self
Set source frame height.
Sourcepub fn target_pixel_format(self, format: PixelFormat) -> Self
pub fn target_pixel_format(self, format: PixelFormat) -> Self
Set target pixel format. The default is equal to the source format.
Sourcepub fn target_width(self, width: usize) -> Self
pub fn target_width(self, width: usize) -> Self
Set target frame width.
Sourcepub fn target_height(self, height: usize) -> Self
pub fn target_height(self, height: usize) -> Self
Set target frame height.
Sourcepub fn algorithm(self, algorithm: Algorithm) -> Self
pub fn algorithm(self, algorithm: Algorithm) -> Self
Set scaling algorithm. The default is bicubic.
Sourcepub fn build(self) -> Result<VideoFrameScaler, Error>
pub fn build(self) -> Result<VideoFrameScaler, Error>
Build the video frame scaler.
Auto Trait Implementations§
impl Freeze for VideoFrameScalerBuilder
impl RefUnwindSafe for VideoFrameScalerBuilder
impl Send for VideoFrameScalerBuilder
impl Sync for VideoFrameScalerBuilder
impl Unpin for VideoFrameScalerBuilder
impl UnwindSafe for VideoFrameScalerBuilder
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