pub struct Scaler { /* private fields */ }Implementations§
Source§impl Scaler
impl Scaler
pub fn new( size: &FrameSize, src_format: Pixel, dst_format: Pixel, ) -> FFmpegResult<Self>
pub fn with_algorithm( size: &FrameSize, src_format: Pixel, dst_format: Pixel, algorithm: ScalingAlgorithm, ) -> FFmpegResult<Self>
pub fn from_info(info: &VideoInfo, dst_format: Pixel) -> FFmpegResult<Self>
pub fn from_stream(stream: &Stream<'_>, dst_format: Pixel) -> FFmpegResult<Self>
pub fn from_path( path: &Path, index: usize, dst_format: Pixel, ) -> FFmpegResult<Self>
pub fn scale_frame(&mut self, frame: &VideoFrame) -> FFmpegResult<VideoFrame>
Auto Trait Implementations§
impl !Send for Scaler
impl !Sync for Scaler
impl Freeze for Scaler
impl RefUnwindSafe for Scaler
impl Unpin for Scaler
impl UnsafeUnpin for Scaler
impl UnwindSafe for Scaler
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