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)
 Frees a graph and destroys its links.
int avfilter_graph_add_filter (AVFilterGraph *graph, AVFilterContext *filter)
 Adds an existing filter instance to a filter graph.
int avfilter_graph_check_validity (AVFilterGraph *graph, AVClass *log_ctx)
 Checks for the validity of graph.
int avfilter_graph_config_links (AVFilterGraph *graph, AVClass *log_ctx)
 Configures all the links of graphctx.
AVFilterContextavfilter_graph_get_filter (AVFilterGraph *graph, char *name)
 Gets a filter instance with name name from graph.
static int query_formats (AVFilterGraph *graph, AVClass *log_ctx)
static void pick_format (AVFilterLink *link)
static void pick_formats (AVFilterGraph *graph)
int avfilter_graph_config_formats (AVFilterGraph *graph, AVClass *log_ctx)
 Configures the formats of all the links in the graph.


Function Documentation

int avfilter_graph_add_filter ( AVFilterGraph graphctx,
AVFilterContext filter 
)

Adds 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(), query_formats(), and video_thread().

int avfilter_graph_check_validity ( AVFilterGraph graphctx,
AVClass log_ctx 
)

Checks 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.

Referenced by main(), and video_thread().

int avfilter_graph_config_formats ( AVFilterGraph graph,
AVClass log_ctx 
)

Configures the formats of all the links in the graph.

Definition at line 193 of file avfiltergraph.c.

Referenced by main(), and video_thread().

int avfilter_graph_config_links ( AVFilterGraph graphctx,
AVClass log_ctx 
)

Configures all the links of graphctx.

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

Definition at line 80 of file avfiltergraph.c.

Referenced by main(), and video_thread().

void avfilter_graph_destroy ( AVFilterGraph graph  ) 

Frees a graph and destroys its links.

Definition at line 29 of file avfiltergraph.c.

Referenced by avfilter_graph_parse(), and video_thread().

AVFilterContext* avfilter_graph_get_filter ( AVFilterGraph graph,
char *  name 
)

Gets a filter instance with name name from graph.

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

Definition at line 97 of file avfiltergraph.c.

static void pick_format ( AVFilterLink link  )  [static]

Definition at line 167 of file avfiltergraph.c.

Referenced by pick_formats().

static void pick_formats ( AVFilterGraph graph  )  [static]

Definition at line 179 of file avfiltergraph.c.

Referenced by avfilter_graph_config_formats().

static int query_formats ( AVFilterGraph graph,
AVClass log_ctx 
) [static]

Definition at line 108 of file avfiltergraph.c.

Referenced by avfilter_graph_config_formats().


Generated on Fri Oct 26 02:36:54 2012 for FFmpeg by  doxygen 1.5.8