-/** Linked-list of filters to create for an AVFilterGraphDesc */
-typedef struct AVFilterGraphDescFilter
-{
- char *name; ///< filter instance name
- char *filter; ///< name of filter type
- char *args; ///< filter parameters
- struct AVFilterGraphDescFilter *next;
-} AVFilterGraphDescFilter;
-
-/** Linked-list of links between filters */
-typedef struct AVFilterGraphDescLink
-{
- /* TODO: allow referencing pads by name, not just by index */
- char *src; ///< name of the source filter
- unsigned srcpad; ///< index of the output pad on the source filter
-
- char *dst; ///< name of the dest filter
- unsigned dstpad; ///< index of the input pad on the dest filter
-
- struct AVFilterGraphDescLink *next;
-} AVFilterGraphDescLink;
-
-/** Linked-list of filter pads to be exported from the graph */
-typedef struct AVFilterGraphDescExport
-{
- /* TODO: allow referencing pads by name, not just by index */
- char *name; ///< name of the exported pad
- char *filter; ///< name of the filter
- unsigned pad; ///< index of the pad to be exported
-
- struct AVFilterGraphDescExport *next;
-} AVFilterGraphDescExport;
-
-/** Sections of a filter graph description */
-typedef enum
-{
- SEC_NONE = 0,
- SEC_FILTERS,
- SEC_LINKS,
- SEC_INPUTS,
- SEC_OUTPUTS
-} AVFilterGraphDescSection;
-
-/** Description of a graph to be loaded from a file, etc */
-typedef struct
-{
- AVFilterGraphDescFilter *filters; ///< filters in the graph
- AVFilterGraphDescLink *links; ///< links between the filters
- AVFilterGraphDescExport *inputs; ///< inputs to export
- AVFilterGraphDescExport *outputs; ///< outputs to export
-} AVFilterGraphDesc;
-
-typedef struct
-{
- AVFilterGraphDescSection section; ///< current section being parsed
-
- AVFilterGraphDescFilter **filterp; ///< last parsed filter
- AVFilterGraphDescLink **linkp; ///< last parsed link
- AVFilterGraphDescExport **inputp; ///< last parsed exported input
- AVFilterGraphDescExport **outputp; ///< last parsed exported output
-} AVFilterGraphDescParser;
-
-extern AVFilter avfilter_vf_graph;
-extern AVFilter avfilter_vf_graphfile;
-extern AVFilter avfilter_vf_graphdesc;