Context

Struct Context 

Source
pub struct Context<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Context<'a>

Source

pub unsafe fn wrap(ptr: *mut AVFilterContext) -> Self

Source

pub unsafe fn as_ptr(&self) -> *const AVFilterContext

Source

pub unsafe fn as_mut_ptr(&mut self) -> *mut AVFilterContext

Source§

impl<'a> Context<'a>

Source

pub fn source(&'a mut self) -> Source<'a>

Source

pub fn sink(&'a mut self) -> Sink<'a>

Source

pub fn set_pixel_format(&mut self, value: Pixel)

Source

pub fn set_sample_format(&mut self, value: Sample)

Source

pub fn set_sample_rate(&mut self, value: u32)

Source

pub fn set_channel_layout(&mut self, value: ChannelLayoutMask)

Source

pub fn set_ch_layout(&mut self, value: ChannelLayout<'_>)

Trait Implementations§

Source§

impl<'a> AsMutPtr<AVFilterContext> for Context<'a>

Source§

fn as_mut_ptr(&mut self) -> *mut AVFilterContext

Returns a *mut raw pointer to the underlying FFmpeg type.
Source§

impl<'a> AsPtr<AVFilterContext> for Context<'a>

Source§

fn as_ptr(&self) -> *const AVFilterContext

Returns a *const raw pointer to the underlying FFmpeg type.
Source§

impl<'a> Settable<AVFilterContext> for Context<'a>

Source§

fn set<V: 'static>(&mut self, name: &str, value: &V) -> Result<(), Error>

Source§

fn set_str(&mut self, name: &str, value: &str) -> Result<(), Error>

Source§

fn set_int(&mut self, name: &str, value: i64) -> Result<(), Error>

Source§

fn set_double(&mut self, name: &str, value: f64) -> Result<(), Error>

Source§

fn set_rational<V: Into<Rational>>( &mut self, name: &str, value: V, ) -> Result<(), Error>

Source§

fn set_image_size(&mut self, name: &str, w: u32, h: u32) -> Result<(), Error>

Source§

fn set_pixel_format(&mut self, name: &str, format: Pixel) -> Result<(), Error>

Source§

fn set_sample_format(&mut self, name: &str, format: Sample) -> Result<(), Error>

Source§

fn set_channel_layout( &mut self, name: &str, layout: ChannelLayoutMask, ) -> Result<(), Error>

Auto Trait Implementations§

§

impl<'a> Freeze for Context<'a>

§

impl<'a> RefUnwindSafe for Context<'a>

§

impl<'a> !Send for Context<'a>

§

impl<'a> !Sync for Context<'a>

§

impl<'a> Unpin for Context<'a>

§

impl<'a> UnwindSafe for Context<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.