#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 AVFilterContext * | create_filter (AVFilterGraph *ctx, int index, const char *filt_name, const char *args, AVClass *log_ctx) |
static AVFilterContext * | parse_filter (const char **buf, AVFilterGraph *graph, int index, AVClass *log_ctx) |
Parse "filter=params". | |
static void | free_inout (AVFilterInOut *head) |
static AVFilterInOut * | extract_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 WHITESPACES " \n\t" |
Definition at line 31 of file graphparser.c.
Referenced by av_get_token(), avfilter_graph_parse(), parse_inputs(), and parse_outputs().
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.
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 |
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] |
static AVFilterInOut* extract_inout | ( | const char * | label, | |
AVFilterInOut ** | links | |||
) | [static] |
static void free_inout | ( | AVFilterInOut * | head | ) | [static] |
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] |
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] |
static char* parse_link_name | ( | const char ** | buf, | |
AVClass * | log_ctx | |||
) | [static] |
Parse "[linkname]".
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] |