Commit 243110f9 authored by Stefano Sabatini's avatar Stefano Sabatini

Add a field 'next' to AVFilter.

Simplify the registration and iteration of all the registered filters,
consistent with what is done with formats / codecs.

Originally committed as revision 20385 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 77f66963
...@@ -23,8 +23,8 @@ ...@@ -23,8 +23,8 @@
#define AVFILTER_AVFILTER_H #define AVFILTER_AVFILTER_H
#define LIBAVFILTER_VERSION_MAJOR 1 #define LIBAVFILTER_VERSION_MAJOR 1
#define LIBAVFILTER_VERSION_MINOR 4 #define LIBAVFILTER_VERSION_MINOR 5
#define LIBAVFILTER_VERSION_MICRO 1 #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, \
LIBAVFILTER_VERSION_MINOR, \ LIBAVFILTER_VERSION_MINOR, \
...@@ -374,7 +374,7 @@ int avfilter_default_query_formats(AVFilterContext *ctx); ...@@ -374,7 +374,7 @@ int avfilter_default_query_formats(AVFilterContext *ctx);
* Filter definition. This defines the pads a filter contains, and all the * Filter definition. This defines the pads a filter contains, and all the
* callback functions used to interact with the filter. * callback functions used to interact with the filter.
*/ */
typedef struct typedef struct AVFilter
{ {
const char *name; ///< filter name const char *name; ///< filter name
...@@ -412,6 +412,11 @@ typedef struct ...@@ -412,6 +412,11 @@ typedef struct
* NULL_IF_CONFIG_SMALL() macro to define it. * NULL_IF_CONFIG_SMALL() macro to define it.
*/ */
const char *description; const char *description;
/**
* The next registered filter, NULL if this is the last one.
*/
struct AVFilter *next;
} AVFilter; } AVFilter;
/** An instance of a filter */ /** An instance of a filter */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment