pub struct Context { /* private fields */ }
Implementations§
Source§impl Context
impl Context
pub unsafe fn as_ptr(&self) -> *const SwsContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut SwsContext
Source§impl Context
impl Context
pub fn get( src_format: Pixel, src_w: u32, src_h: u32, dst_format: Pixel, dst_w: u32, dst_h: u32, flags: Flags, ) -> Result<Self, Error>
pub fn cached( &mut self, src_format: Pixel, src_w: u32, src_h: u32, dst_format: Pixel, dst_w: u32, dst_h: u32, flags: Flags, )
pub fn input(&self) -> &Definition
pub fn output(&self) -> &Definition
pub fn run(&mut self, input: &Video, output: &mut Video) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Context
impl RefUnwindSafe for Context
impl !Send for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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