2008-04-04 20:02:10 +00:00
|
|
|
/*
|
|
|
|
* Filter graphs
|
|
|
|
* 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_AVFILTERGRAPH_H
|
|
|
|
#define AVFILTER_AVFILTERGRAPH_H
|
2008-04-04 20:02:10 +00:00
|
|
|
|
|
|
|
#include "avfilter.h"
|
|
|
|
|
2008-04-04 20:08:49 +00:00
|
|
|
typedef struct AVFilterGraph {
|
|
|
|
unsigned filter_count;
|
|
|
|
AVFilterContext **filters;
|
2008-04-04 20:08:56 +00:00
|
|
|
} AVFilterGraph;
|
2008-04-04 20:08:31 +00:00
|
|
|
|
2008-04-04 20:07:54 +00:00
|
|
|
/**
|
2008-12-26 22:25:47 +00:00
|
|
|
* Get from \p graph a filter instance with name \p name.
|
|
|
|
*
|
|
|
|
* @return the pointer to the found filter instance or NULL if it
|
|
|
|
* cannot be found.
|
2008-04-04 20:07:54 +00:00
|
|
|
*/
|
2008-04-04 20:09:27 +00:00
|
|
|
AVFilterContext *avfilter_graph_get_filter(AVFilterGraph *graph, char *name);
|
2008-04-04 20:07:54 +00:00
|
|
|
|
2008-04-04 20:02:10 +00:00
|
|
|
/**
|
|
|
|
* Add an existing filter instance to a filter graph.
|
|
|
|
* @param graph The filter graph
|
|
|
|
* @param filter The filter to be added
|
|
|
|
*/
|
2008-04-04 20:09:47 +00:00
|
|
|
int avfilter_graph_add_filter(AVFilterGraph *graphctx, AVFilterContext *filter);
|
2008-04-04 20:02:10 +00:00
|
|
|
|
2008-04-04 20:06:22 +00:00
|
|
|
/**
|
2008-04-04 20:08:26 +00:00
|
|
|
* Configure the formats of all the links in the graph.
|
2008-04-04 20:07:41 +00:00
|
|
|
*/
|
2008-04-04 20:08:56 +00:00
|
|
|
int avfilter_graph_config_formats(AVFilterGraph *graphctx);
|
2008-04-04 20:07:41 +00:00
|
|
|
|
2008-04-04 20:09:14 +00:00
|
|
|
/**
|
|
|
|
* Free a graph and destroy its links.
|
|
|
|
*/
|
|
|
|
void avfilter_destroy_graph(AVFilterGraph *graph);
|
|
|
|
|
2008-08-31 07:39:47 +00:00
|
|
|
#endif /* AVFILTER_AVFILTERGRAPH_H */
|