#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 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) |
Add to a graph a graph described by a string. |
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.
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 332 of file graphparser.c.
static char* consume_string | ( | const char ** | buf | ) | [static] |
Consumes a string from *buf.
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] |
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 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] |
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] |
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 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] |