22 #ifndef AVFILTER_AVFILTERGRAPH_H
23 #define AVFILTER_AVFILTERGRAPH_H
69 const char *
name,
const char *args,
void *opaque,
AVFilterContext ** filters
struct AVFilterInOut * next
next input/input in the list, NULL if this is the last
AVFilterGraph * avfilter_graph_alloc(void)
Allocate a filter graph.
int avfilter_graph_config(AVFilterGraph *graphctx, void *log_ctx)
Check validity and configure all the links and formats in the graph.
char * scale_sws_opts
sws options to use for the auto-inserted scale filters
AVFilterContext * avfilter_graph_get_filter(AVFilterGraph *graph, char *name)
Get a filter instance with name name from graph.
struct AVFilterGraph AVFilterGraph
static void filter(MpegAudioContext *s, int ch, const short *samples, int incr)
int avfilter_graph_create_filter(AVFilterContext **filt_ctx, AVFilter *filt, const char *name, const char *args, void *opaque, AVFilterGraph *graph_ctx)
Create and add a filter instance into an existing graph.
AVFilterContext * filter_ctx
filter context associated to this input/output
A linked-list of the inputs/outputs of the filter chain.
struct AVFilterInOut AVFilterInOut
A linked-list of the inputs/outputs of the filter chain.
int pad_idx
index of the filt_ctx pad to use for linking
static struct PPFilter filters[]
char * name
unique name for this input/output in the list
void avfilter_graph_free(AVFilterGraph **graph)
Free a graph, destroy its links, and set *graph to NULL.
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters, AVFilterInOut *inputs, AVFilterInOut *outputs, void *log_ctx)
Add a graph described by a string to a graph.
int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter)
Add an existing filter instance to a filter graph.