pub struct FilterGraph(/* private fields */);
Expand description
A filter graph. Used to chain filters together when transforming media data.
Implementations§
Source§impl FilterGraph
impl FilterGraph
Sourcepub fn new() -> Result<Self, FfmpegError>
pub fn new() -> Result<Self, FfmpegError>
Creates a new filter graph.
Sourcepub const fn as_ptr(&self) -> *const AVFilterGraph
pub const fn as_ptr(&self) -> *const AVFilterGraph
Get the pointer to the filter graph.
Sourcepub const fn as_mut_ptr(&mut self) -> *mut AVFilterGraph
pub const fn as_mut_ptr(&mut self) -> *mut AVFilterGraph
Get the mutable pointer to the filter graph.
Sourcepub fn add(
&mut self,
filter: Filter,
name: &str,
args: &str,
) -> Result<FilterContext<'_>, FfmpegError>
pub fn add( &mut self, filter: Filter, name: &str, args: &str, ) -> Result<FilterContext<'_>, FfmpegError>
Add a filter to the filter graph.
Sourcepub fn get(&mut self, name: &str) -> Option<FilterContext<'_>>
pub fn get(&mut self, name: &str) -> Option<FilterContext<'_>>
Get a filter context by name.
Sourcepub fn validate(&mut self) -> Result<(), FfmpegError>
pub fn validate(&mut self) -> Result<(), FfmpegError>
Validate the filter graph.
Sourcepub const fn set_thread_count(&mut self, threads: i32)
pub const fn set_thread_count(&mut self, threads: i32)
Set the thread count for the filter graph.
Sourcepub fn input(
&mut self,
name: &str,
pad: i32,
) -> Result<FilterGraphParser<'_>, FfmpegError>
pub fn input( &mut self, name: &str, pad: i32, ) -> Result<FilterGraphParser<'_>, FfmpegError>
Add an input to the filter graph.
Sourcepub fn output(
&mut self,
name: &str,
pad: i32,
) -> Result<FilterGraphParser<'_>, FfmpegError>
pub fn output( &mut self, name: &str, pad: i32, ) -> Result<FilterGraphParser<'_>, FfmpegError>
Add an output to the filter graph.
Trait Implementations§
impl Send for FilterGraph
Safety: FilterGraph
is safe to send between threads.
Auto Trait Implementations§
impl Freeze for FilterGraph
impl RefUnwindSafe for FilterGraph
impl !Sync for FilterGraph
impl Unpin for FilterGraph
impl UnwindSafe for FilterGraph
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