pub struct Context { /* private fields */ }
Implementations
sourceimpl Context
impl Context
pub unsafe fn as_ptr(&self) -> *const SwsContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut SwsContext
sourceimpl 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 RefUnwindSafe for Context
impl !Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more