[][src]Struct ffav::software::scaling::context::Context

pub struct Context { /* fields omitted */ }

Implementations

impl Context[src]

pub unsafe fn as_ptr(&self) -> *const SwsContext[src]

pub unsafe fn as_mut_ptr(&mut self) -> *mut SwsContext[src]

impl Context[src]

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>
[src]

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
)
[src]

pub fn input(&self) -> &Definition[src]

pub fn output(&self) -> &Definition[src]

pub fn run(&mut self, input: &Video, output: &mut Video) -> Result<(), Error>[src]

Trait Implementations

impl Drop for Context[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.