libavfilter/graphparser.c File Reference

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

Go to the source code of this file.

Functions

static int link_filter (AVFilterContext *src, int srcpad, AVFilterContext *dst, int dstpad, AVClass *log_ctx)
static int consume_whitespace (const char *buf)
static char * consume_string (const char **buf)
 Consumes a string from *buf.
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)
 Add to a graph a graph described by a string.


Function Documentation

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

Add to a graph a graph described by a string.

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 332 of file graphparser.c.

static char* consume_string ( const char **  buf  )  [static]

Consumes a string from *buf.

Returns:
a copy of the consumed string, which should be free'd after use

Definition at line 53 of file graphparser.c.

Referenced by parse_filter(), and parse_link_name().

static int consume_whitespace ( const char *  buf  )  [static]

Definition at line 44 of file graphparser.c.

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

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

Definition at line 121 of file graphparser.c.

Referenced by parse_filter().

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

Definition at line 192 of file graphparser.c.

Referenced by parse_inputs(), and parse_outputs().

static void free_inout ( AVFilterInOut head  )  [static]

Definition at line 182 of file graphparser.c.

Referenced by avfilter_graph_parse().

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

Definition at line 207 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 30 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 213 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 164 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 260 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 97 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 293 of file graphparser.c.

Referenced by avfilter_graph_parse().


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