pub struct Context { /* private fields */ }Implementations§
Source§impl Context
impl Context
pub unsafe fn wrap(ptr: *mut AVFilterContext) -> Self
pub unsafe fn as_ptr(&self) -> *const AVFilterContext
pub unsafe fn as_mut_ptr(&mut self) -> *mut AVFilterContext
Source§impl Context
impl Context
pub fn source(&mut self) -> Source<'_>
pub fn sink(&mut self) -> Sink<'_>
pub fn set_pixel_format(&mut self, value: Pixel)
pub fn set_sample_format(&mut self, value: Sample)
pub fn set_sample_rate(&mut self, value: u32)
pub fn set_channel_layout(&mut self, value: ChannelLayout)
pub fn link(&mut self, srcpad: u32, dst: &mut Self, dstpad: u32)
Trait Implementations§
Source§impl Settable for Context
impl Settable for Context
fn set<T: 'static>(&mut self, name: &str, value: &T) -> Result<(), Error>
fn set_str(&mut self, name: &str, value: &str) -> Result<(), Error>
fn set_int(&mut self, name: &str, value: i64) -> Result<(), Error>
fn set_double(&mut self, name: &str, value: f64) -> Result<(), Error>
fn set_rational<T: Into<Rational>>( &mut self, name: &str, value: T, ) -> Result<(), Error>
fn set_image_size(&mut self, name: &str, w: u32, h: u32) -> Result<(), Error>
fn set_pixel_format(&mut self, name: &str, format: Pixel) -> Result<(), Error>
fn set_sample_format(&mut self, name: &str, format: Sample) -> Result<(), Error>
fn set_channel_layout( &mut self, name: &str, layout: ChannelLayout, ) -> Result<(), Error>
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