mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Remove graphparser.h header, move AVFilterInOut and
avfilter_graph_parse() declaration to libavfilter/avfiltergraph.h. Simplify, and less confusing for the user. Originally committed as revision 25705 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0b90e4a240
commit
1e80a0eaa4
@ -13,6 +13,10 @@ libavutil: 2009-03-08
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2010-11-07 - r25705 - lavfi 1.58.0 - avfiltergraph.h
|
||||||
|
Remove graphparser.h header, move AVFilterInOut and
|
||||||
|
avfilter_graph_parse() declarations to libavfilter/avfiltergraph.h.
|
||||||
|
|
||||||
2010-11-07 - r25700 - lavfi 1.57.0 - AVFilterInOut
|
2010-11-07 - r25700 - lavfi 1.57.0 - AVFilterInOut
|
||||||
Rename field AVFilterInOut.filter to AVFilterInOut.filter_ctx.
|
Rename field AVFilterInOut.filter to AVFilterInOut.filter_ctx.
|
||||||
This change breaks libavfilter API.
|
This change breaks libavfilter API.
|
||||||
|
1
ffmpeg.c
1
ffmpeg.c
@ -49,7 +49,6 @@
|
|||||||
#if CONFIG_AVFILTER
|
#if CONFIG_AVFILTER
|
||||||
# include "libavfilter/avfilter.h"
|
# include "libavfilter/avfilter.h"
|
||||||
# include "libavfilter/avfiltergraph.h"
|
# include "libavfilter/avfiltergraph.h"
|
||||||
# include "libavfilter/graphparser.h"
|
|
||||||
# include "libavfilter/vsrc_buffer.h"
|
# include "libavfilter/vsrc_buffer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
1
ffplay.c
1
ffplay.c
@ -41,7 +41,6 @@
|
|||||||
#if CONFIG_AVFILTER
|
#if CONFIG_AVFILTER
|
||||||
# include "libavfilter/avfilter.h"
|
# include "libavfilter/avfilter.h"
|
||||||
# include "libavfilter/avfiltergraph.h"
|
# include "libavfilter/avfiltergraph.h"
|
||||||
# include "libavfilter/graphparser.h"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "cmdutils.h"
|
#include "cmdutils.h"
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
#include "libavutil/avutil.h"
|
#include "libavutil/avutil.h"
|
||||||
|
|
||||||
#define LIBAVFILTER_VERSION_MAJOR 1
|
#define LIBAVFILTER_VERSION_MAJOR 1
|
||||||
#define LIBAVFILTER_VERSION_MINOR 57
|
#define LIBAVFILTER_VERSION_MINOR 58
|
||||||
#define LIBAVFILTER_VERSION_MICRO 0
|
#define LIBAVFILTER_VERSION_MICRO 0
|
||||||
|
|
||||||
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
|
||||||
|
@ -87,4 +87,40 @@ int avfilter_graph_config(AVFilterGraph *graphctx, AVClass *log_ctx);
|
|||||||
*/
|
*/
|
||||||
void avfilter_graph_free(AVFilterGraph *graph);
|
void avfilter_graph_free(AVFilterGraph *graph);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A linked-list of the inputs/outputs of the filter chain.
|
||||||
|
*
|
||||||
|
* This is mainly useful for avfilter_graph_parse(), since this
|
||||||
|
* function may accept a description of a graph with not connected
|
||||||
|
* input/output pads. This struct specifies, per each not connected
|
||||||
|
* pad contained in the graph, the filter context and the pad index
|
||||||
|
* required for establishing a link.
|
||||||
|
*/
|
||||||
|
typedef struct AVFilterInOut {
|
||||||
|
/** unique name for this input/output in the list */
|
||||||
|
char *name;
|
||||||
|
|
||||||
|
/** filter context associated to this input/output */
|
||||||
|
AVFilterContext *filter_ctx;
|
||||||
|
|
||||||
|
/** index of the filt_ctx pad to use for linking */
|
||||||
|
int pad_idx;
|
||||||
|
|
||||||
|
/** next input/input in the list, NULL if this is the last */
|
||||||
|
struct AVFilterInOut *next;
|
||||||
|
} AVFilterInOut;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a graph described by a string to a graph.
|
||||||
|
*
|
||||||
|
* @param graph the filter graph where to link the parsed graph context
|
||||||
|
* @param filters string to be parsed
|
||||||
|
* @param inputs linked list to the inputs of the graph
|
||||||
|
* @param outputs linked list to the outputs of the graph
|
||||||
|
* @return zero on success, a negative AVERROR code on error
|
||||||
|
*/
|
||||||
|
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
|
||||||
|
AVFilterInOut *inputs, AVFilterInOut *outputs,
|
||||||
|
AVClass *log_ctx);
|
||||||
|
|
||||||
#endif /* AVFILTER_AVFILTERGRAPH_H */
|
#endif /* AVFILTER_AVFILTERGRAPH_H */
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "libavutil/avstring.h"
|
#include "libavutil/avstring.h"
|
||||||
#include "graphparser.h"
|
|
||||||
#include "avfilter.h"
|
#include "avfilter.h"
|
||||||
#include "avfiltergraph.h"
|
#include "avfiltergraph.h"
|
||||||
#include "parseutils.h"
|
#include "parseutils.h"
|
||||||
|
@ -1,64 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef AVFILTER_GRAPHPARSER_H
|
|
||||||
#define AVFILTER_GRAPHPARSER_H
|
|
||||||
|
|
||||||
#include "avfilter.h"
|
|
||||||
#include "avfiltergraph.h"
|
|
||||||
|
|
||||||
/**
|
|
||||||
* A linked-list of the inputs/outputs of the filter chain.
|
|
||||||
*
|
|
||||||
* This is mainly useful for avfilter_graph_parse(), since this
|
|
||||||
* function may accept a description of a graph with not connected
|
|
||||||
* input/output pads. This struct specifies, per each not connected
|
|
||||||
* pad contained in the graph, the filter context and the pad index
|
|
||||||
* required for establishing a link.
|
|
||||||
*/
|
|
||||||
typedef struct AVFilterInOut {
|
|
||||||
/** unique name for this input/output in the list */
|
|
||||||
char *name;
|
|
||||||
|
|
||||||
/** filter context associated to this input/output */
|
|
||||||
AVFilterContext *filter_ctx;
|
|
||||||
|
|
||||||
/** index of the filt_ctx pad to use for linking */
|
|
||||||
int pad_idx;
|
|
||||||
|
|
||||||
/** next input/input in the list, NULL if this is the last */
|
|
||||||
struct AVFilterInOut *next;
|
|
||||||
} AVFilterInOut;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Add a graph described by a string to a graph.
|
|
||||||
*
|
|
||||||
* @param graph the filter graph where to link the parsed graph context
|
|
||||||
* @param filters string to be parsed
|
|
||||||
* @param inputs linked list to the inputs of the graph
|
|
||||||
* @param outputs linked list to the outputs of the graph
|
|
||||||
* @return zero on success, a negative AVERROR code on error
|
|
||||||
*/
|
|
||||||
int avfilter_graph_parse(AVFilterGraph *graph, const char *filters,
|
|
||||||
AVFilterInOut *inputs, AVFilterInOut *outputs,
|
|
||||||
AVClass *log_ctx);
|
|
||||||
|
|
||||||
#endif /* AVFILTER_GRAPHPARSER_H */
|
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#undef HAVE_AV_CONFIG_H
|
#undef HAVE_AV_CONFIG_H
|
||||||
#include "libavutil/pixdesc.h"
|
#include "libavutil/pixdesc.h"
|
||||||
#include "libavfilter/graphparser.h"
|
#include "libavfilter/avfiltergraph.h"
|
||||||
|
|
||||||
static void usage(void)
|
static void usage(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user