Struct stainless_ffmpeg::filter_graph::FilterGraph
source · [−]pub struct FilterGraph {
pub kind: GraphKind,
pub graph: *mut AVFilterGraph,
pub audio_inputs: Vec<Filter>,
pub audio_outputs: Vec<Filter>,
pub video_inputs: Vec<Filter>,
pub video_outputs: Vec<Filter>,
}
Fields
kind: GraphKind
graph: *mut AVFilterGraph
audio_inputs: Vec<Filter>
audio_outputs: Vec<Filter>
video_inputs: Vec<Filter>
video_outputs: Vec<Filter>
Implementations
sourceimpl FilterGraph
impl FilterGraph
pub fn new() -> Result<Self, String>
pub fn add_input_from_video_decoder(
&mut self,
label: &str,
video_decoder: &VideoDecoder
) -> Result<(), String>
pub fn add_input_from_audio_decoder(
&mut self,
label: &str,
audio_decoder: &AudioDecoder
) -> Result<(), String>
pub fn add_video_output(&mut self, label: &str) -> Result<(), String>
pub fn add_audio_output(&mut self, label: &str) -> Result<(), String>
pub fn add_filter(&self, args: &Filter) -> Result<Filter, String>
pub fn connect(
&mut self,
src: &Filter,
src_index: u32,
dst: &Filter,
dst_index: u32
) -> Result<(), String>
pub fn connect_input(
&mut self,
label: &str,
src_index: u32,
dst: &Filter,
dst_index: u32
) -> Result<(), String>
pub fn connect_output(
&mut self,
src: &Filter,
src_index: u32,
label: &str,
dst_index: u32
) -> Result<(), String>
pub fn validate(&mut self) -> Result<(), String>
pub fn process(
&self,
in_audio_frames: &[Frame],
in_video_frames: &[Frame]
) -> Result<(Vec<Frame>, Vec<Frame>), String>
Trait Implementations
sourceimpl Debug for FilterGraph
impl Debug for FilterGraph
sourceimpl Default for FilterGraph
impl Default for FilterGraph
sourceimpl Display for FilterGraph
impl Display for FilterGraph
sourceimpl Drop for FilterGraph
impl Drop for FilterGraph
sourceimpl PartialEq<FilterGraph> for FilterGraph
impl PartialEq<FilterGraph> for FilterGraph
sourcefn eq(&self, other: &FilterGraph) -> bool
fn eq(&self, other: &FilterGraph) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FilterGraph) -> bool
fn ne(&self, other: &FilterGraph) -> bool
This method tests for !=
.
impl StructuralPartialEq for FilterGraph
Auto Trait Implementations
impl RefUnwindSafe for FilterGraph
impl !Send for FilterGraph
impl !Sync for FilterGraph
impl Unpin for FilterGraph
impl UnwindSafe for FilterGraph
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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