Struct AVFilterParams
#[repr(C)]pub struct AVFilterParams {
pub filter: *mut AVFilterContext,
pub filter_name: *mut i8,
pub instance_name: *mut i8,
pub opts: *mut AVDictionary,
pub inputs: *mut *mut AVFilterPadParams,
pub nb_inputs: u32,
pub outputs: *mut *mut AVFilterPadParams,
pub nb_outputs: u32,
}
Expand description
Parameters describing a filter to be created in a filtergraph.
Created as a child of AVFilterGraphSegment by avfilter_graph_segment_parse(). Freed in avfilter_graph_segment_free().
Fields§
§filter: *mut AVFilterContext
The filter context.
Created by avfilter_graph_segment_create_filters() based on AVFilterParams.filter_name and instance_name.
Callers may also create the filter context manually, then they should av_free() filter_name and set it to NULL. Such AVFilterParams instances are then skipped by avfilter_graph_segment_create_filters().
filter_name: *mut i8
Name of the AVFilter to be used.
An av_malloc()’ed string, set by avfilter_graph_segment_parse(). Will be passed to avfilter_get_by_name() by avfilter_graph_segment_create_filters().
Callers may av_free() this string and replace it with another one or NULL. If the caller creates the filter instance manually, this string MUST be set to NULL.
When both AVFilterParams.filter an AVFilterParams.filter_name are NULL, this AVFilterParams instance is skipped by avfilter_graph_segment_*() functions.
instance_name: *mut i8
Name to be used for this filter instance.
An av_malloc()’ed string, may be set by avfilter_graph_segment_parse() or left NULL. The caller may av_free() this string and replace with another one or NULL.
Will be used by avfilter_graph_segment_create_filters() - passed as the third argument to avfilter_graph_alloc_filter(), then freed and set to NULL.
opts: *mut AVDictionary
Options to be apllied to the filter.
Filled by avfilter_graph_segment_parse(). Afterwards may be freely modified by the caller.
Will be applied to the filter by avfilter_graph_segment_apply_opts() with an equivalent of av_opt_set_dict2(filter, &opts, AV_OPT_SEARCH_CHILDREN), i.e. any unapplied options will be left in this dictionary.
inputs: *mut *mut AVFilterPadParams
§nb_inputs: u32
§outputs: *mut *mut AVFilterPadParams
§nb_outputs: u32
Trait Implementations§
§impl Clone for AVFilterParams
impl Clone for AVFilterParams
§fn clone(&self) -> AVFilterParams
fn clone(&self) -> AVFilterParams
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more