2008-05-24 23:38:01 +03:00
|
|
|
/*
|
|
|
|
* Filter graph parser
|
|
|
|
* copyright (c) 2007 Bobby Bingham
|
|
|
|
*
|
|
|
|
* This file is part of FFmpeg.
|
|
|
|
*
|
|
|
|
* FFmpeg is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* FFmpeg is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with FFmpeg; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/
|
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#ifndef AVFILTER_GRAPHPARSER_H
|
|
|
|
#define AVFILTER_GRAPHPARSER_H
|
2008-05-24 23:38:01 +03:00
|
|
|
|
|
|
|
#include "avfilter.h"
|
|
|
|
#include "avfiltergraph.h"
|
|
|
|
|
2008-05-24 23:41:27 +03:00
|
|
|
/**
|
|
|
|
* A linked-list of the inputs/outputs of the filter chain.
|
|
|
|
*/
|
|
|
|
typedef struct AVFilterInOut {
|
2009-06-01 19:07:48 +03:00
|
|
|
char *name;
|
2008-05-24 23:41:27 +03:00
|
|
|
AVFilterContext *filter;
|
|
|
|
int pad_idx;
|
|
|
|
|
|
|
|
struct AVFilterInOut *next;
|
|
|
|
} AVFilterInOut;
|
|
|
|
|
2008-05-24 23:38:01 +03:00
|
|
|
/**
|
2009-05-23 01:38:41 +03:00
|
|
|
* Adds a graph described by a string to a graph.
|
2008-12-26 12:48:54 +02:00
|
|
|
*
|
2008-05-24 23:38:01 +03:00
|
|
|
* @param graph the filter graph where to link the parsed graph context
|
|
|
|
* @param filters string to be parsed
|
2008-12-26 12:48:54 +02:00
|
|
|
* @param inputs linked list to the inputs of the graph
|
|
|
|
* @param outputs linked list to the outputs of the graph
|
2008-05-24 23:38:01 +03:00
|
|
|
* @return zero on success, -1 on error
|
|
|
|
*/
|
2009-02-27 00:03:55 +02:00
|
|
|
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
|
2008-05-24 23:42:34 +03:00
|
|
|
AVFilterInOut *inputs, AVFilterInOut *outputs,
|
|
|
|
AVClass *log_ctx);
|
2008-05-24 23:38:01 +03:00
|
|
|
|
2008-08-31 10:39:47 +03:00
|
|
|
#endif /* AVFILTER_GRAPHPARSER_H */
|