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.