libavfilter/graphparser.c File Reference

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

Go to the source code of this file.

Defines

#define WHITESPACES   " \n\t"

Functions

static int link_filter (AVFilterContext *src, int srcpad, AVFilterContext *dst, int dstpad, AVClass *log_ctx)
static char * parse_link_name (const char **buf, AVClass *log_ctx)
 Parse "[linkname]".
static AVFilterContextcreate_filter (AVFilterGraph *ctx, int index, const char *filt_name, const char *args, AVClass *log_ctx)
static AVFilterContextparse_filter (const char **buf, AVFilterGraph *graph, int index, AVClass *log_ctx)
 Parse "filter=params".
static void free_inout (AVFilterInOut *head)
static AVFilterInOutextract_inout (const char *label, AVFilterInOut **links)
static void insert_inout (AVFilterInOut **inouts, AVFilterInOut *element)
static int link_filter_inouts (AVFilterContext *filter, AVFilterInOut **curr_inputs, AVFilterInOut **open_inputs, AVClass *log_ctx)
static int parse_inputs (const char **buf, AVFilterInOut **curr_inputs, AVFilterInOut **open_outputs, AVClass *log_ctx)
static int parse_outputs (const char **buf, AVFilterInOut **curr_inputs, AVFilterInOut **open_inputs, AVFilterInOut **open_outputs, AVClass *log_ctx)
int avfilter_graph_parse (AVFilterGraph *graph, const char *filters, AVFilterInOut *open_inputs, AVFilterInOut *open_outputs, AVClass *log_ctx)
 Adds a graph described by a string to a graph.


Define Documentation

#define WHITESPACES   " \n\t"

Definition at line 31 of file graphparser.c.

Referenced by av_get_token(), avfilter_graph_parse(), parse_inputs(), and parse_outputs().


Function Documentation

int avfilter_graph_parse ( AVFilterGraph graph,
const char *  filters,
AVFilterInOut inputs,
AVFilterInOut outputs,
AVClass log_ctx 
)

Adds a graph described by a string to a graph.

Parameters:
graph the filter graph where to link the parsed graph context
filters string to be parsed
inputs linked list to the inputs of the graph
outputs linked list to the outputs of the graph
Returns:
zero on success, -1 on error

Definition at line 287 of file graphparser.c.

Referenced by main(), and video_thread().

static AVFilterContext* create_filter ( AVFilterGraph ctx,
int  index,
const char *  filt_name,
const char *  args,
AVClass log_ctx 
) [static]

Definition at line 76 of file graphparser.c.

Referenced by parse_filter().

static AVFilterInOut* extract_inout ( const char *  label,
AVFilterInOut **  links 
) [static]

Definition at line 147 of file graphparser.c.

Referenced by parse_inputs(), and parse_outputs().

static void free_inout ( AVFilterInOut head  )  [static]

Definition at line 137 of file graphparser.c.

Referenced by avfilter_graph_parse().

static void insert_inout ( AVFilterInOut **  inouts,
AVFilterInOut element 
) [static]

Definition at line 162 of file graphparser.c.

Referenced by link_filter_inouts(), parse_inputs(), and parse_outputs().

static int link_filter ( AVFilterContext src,
int  srcpad,
AVFilterContext dst,
int  dstpad,
AVClass log_ctx 
) [static]

Definition at line 33 of file graphparser.c.

Referenced by link_filter_inouts(), and parse_outputs().

static int link_filter_inouts ( AVFilterContext filter,
AVFilterInOut **  curr_inputs,
AVFilterInOut **  open_inputs,
AVClass log_ctx 
) [static]

Definition at line 168 of file graphparser.c.

Referenced by avfilter_graph_parse().

static AVFilterContext* parse_filter ( const char **  buf,
AVFilterGraph graph,
int  index,
AVClass log_ctx 
) [static]

Parse "filter=params".

Definition at line 119 of file graphparser.c.

Referenced by avfilter_graph_parse().

static int parse_inputs ( const char **  buf,
AVFilterInOut **  curr_inputs,
AVFilterInOut **  open_outputs,
AVClass log_ctx 
) [static]

Definition at line 215 of file graphparser.c.

Referenced by avfilter_graph_parse().

static char* parse_link_name ( const char **  buf,
AVClass log_ctx 
) [static]

Parse "[linkname]".

Parameters:
name a pointer (that need to be free'd after use) to the name between parenthesis

Definition at line 52 of file graphparser.c.

Referenced by parse_inputs(), and parse_outputs().

static int parse_outputs ( const char **  buf,
AVFilterInOut **  curr_inputs,
AVFilterInOut **  open_inputs,
AVFilterInOut **  open_outputs,
AVClass log_ctx 
) [static]

Definition at line 248 of file graphparser.c.

Referenced by avfilter_graph_parse().


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