libavfilter/avfiltergraph.c File Reference

#include <ctype.h>
#include <string.h>
#include "avfilter.h"
#include "avfiltergraph.h"

Go to the source code of this file.

Functions

void avfilter_graph_destroy (AVFilterGraph *graph)
 Free a graph and destroy its links.
int avfilter_graph_add_filter (AVFilterGraph *graph, AVFilterContext *filter)
 Add an existing filter instance to a filter graph.
int avfilter_graph_check_validity (AVFilterGraph *graph, AVClass *log_ctx)
 Check for the validity of graph.
AVFilterContextavfilter_graph_get_filter (AVFilterGraph *graph, char *name)
 Get from graph a filter instance with name name.
static int query_formats (AVFilterGraph *graph)
static void pick_format (AVFilterLink *link)
static void pick_formats (AVFilterGraph *graph)
int avfilter_graph_config_formats (AVFilterGraph *graph)
 Configure the formats of all the links in the graph.


Function Documentation

int avfilter_graph_add_filter ( AVFilterGraph graphctx,
AVFilterContext filter 
)

Add an existing filter instance to a filter graph.

Parameters:
graph The filter graph
filter The filter to be added

Definition at line 37 of file avfiltergraph.c.

Referenced by create_filter(), and query_formats().

int avfilter_graph_check_validity ( AVFilterGraph graphctx,
AVClass log_ctx 
)

Check for the validity of graph.

A graph is considered valid if all its input and output pads are connected.

Returns:
0 in case of success, a negative value otherwise

Definition at line 50 of file avfiltergraph.c.

int avfilter_graph_config_formats ( AVFilterGraph graph  ) 

Configure the formats of all the links in the graph.

Definition at line 172 of file avfiltergraph.c.

void avfilter_graph_destroy ( AVFilterGraph graph  ) 

Free a graph and destroy its links.

Definition at line 29 of file avfiltergraph.c.

Referenced by avfilter_graph_parse().

AVFilterContext* avfilter_graph_get_filter ( AVFilterGraph graph,
char *  name 
)

Get from graph a filter instance with name name.

Returns:
the pointer to the found filter instance or NULL if it cannot be found.

Definition at line 80 of file avfiltergraph.c.

static void pick_format ( AVFilterLink link  )  [static]

Definition at line 146 of file avfiltergraph.c.

Referenced by pick_formats().

static void pick_formats ( AVFilterGraph graph  )  [static]

Definition at line 158 of file avfiltergraph.c.

Referenced by avfilter_graph_config_formats().

static int query_formats ( AVFilterGraph graph  )  [static]

Definition at line 91 of file avfiltergraph.c.

Referenced by avfilter_graph_config_formats().


Generated on Fri Oct 26 02:35:45 2012 for FFmpeg by  doxygen 1.5.8