pub struct Scalar { /* private fields */ }
Implementations§
Source§impl Scalar
impl Scalar
pub fn new( input_width: i32, input_height: i32, incoming_pixel_fmt: AVPixelFormat, width: i32, height: i32, pixel_format: AVPixelFormat, ) -> Result<Self, FfmpegError>
pub fn pixel_format(&self) -> AVPixelFormat
pub fn width(&self) -> i32
pub fn height(&self) -> i32
pub fn process<'a>( &'a mut self, frame: &Frame, ) -> Result<&'a VideoFrame, FfmpegError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scalar
impl RefUnwindSafe for Scalar
impl !Sync for Scalar
impl Unpin for Scalar
impl UnwindSafe for Scalar
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