2008-05-24 20:38:01 +00: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 07:39:47 +00:00
|
|
|
#ifndef AVFILTER_GRAPHPARSER_H
|
|
|
|
#define AVFILTER_GRAPHPARSER_H
|
2008-05-24 20:38:01 +00:00
|
|
|
|
|
|
|
#include "avfilter.h"
|
|
|
|
#include "avfiltergraph.h"
|
|
|
|
|
2008-05-24 20:41:27 +00:00
|
|
|
/**
|
|
|
|
* A linked-list of the inputs/outputs of the filter chain.
|
|
|
|
*/
|
|
|
|
typedef struct AVFilterInOut {
|
2009-06-01 16:07:48 +00:00
|
|
|
char *name;
|
2008-05-24 20:41:27 +00:00
|
|
|
AVFilterContext *filter;
|
|
|
|
int pad_idx;
|
|
|
|
|
|
|
|
struct AVFilterInOut *next;
|
|
|
|
} AVFilterInOut;
|
|
|
|
|
2008-05-24 20:38:01 +00:00
|
|
|
/**
|
2009-05-22 22:38:41 +00:00
|
|
|
* Adds a graph described by a string to a graph.
|
2008-12-26 10:48:54 +00:00
|
|
|
*
|
2008-05-24 20:38:01 +00:00
|
|
|
* @param graph the filter graph where to link the parsed graph context
|
|
|
|
* @param filters string to be parsed
|
2008-12-26 10:48:54 +00:00
|
|
|
* @param inputs linked list to the inputs of the graph
|
|
|
|
* @param outputs linked list to the outputs of the graph
|
2008-05-24 20:38:01 +00:00
|
|
|
* @return zero on success, -1 on error
|
|
|
|
*/
|
2009-02-26 22:03:55 +00:00
|
|
|
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
|
2008-05-24 20:42:34 +00:00
|
|
|
AVFilterInOut *inputs, AVFilterInOut *outputs,
|
|
|
|
AVClass *log_ctx);
|
2008-05-24 20:38:01 +00:00
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#endif /* AVFILTER_GRAPHPARSER_H */
|