[FFmpeg-cvslog] r20607 - in trunk/libavfilter: avfilter.c avfilter.h
stefano
subversion
Wed Nov 25 00:58:48 CET 2009
Author: stefano
Date: Wed Nov 25 00:58:48 2009
New Revision: 20607
Log:
Implement avfilter_next().
Modified:
trunk/libavfilter/avfilter.c
trunk/libavfilter/avfilter.h
Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c Wed Nov 25 00:52:07 2009 (r20606)
+++ trunk/libavfilter/avfilter.c Wed Nov 25 00:58:48 2009 (r20607)
@@ -354,6 +354,11 @@ int avfilter_register(AVFilter *filter)
return 0;
}
+AVFilter **av_filter_next(AVFilter **filter)
+{
+ return filter ? ++filter : ®istered_avfilters[0];
+}
+
void avfilter_uninit(void)
{
memset(registered_avfilters, 0, sizeof(registered_avfilters));
Modified: trunk/libavfilter/avfilter.h
==============================================================================
--- trunk/libavfilter/avfilter.h Wed Nov 25 00:52:07 2009 (r20606)
+++ trunk/libavfilter/avfilter.h Wed Nov 25 00:58:48 2009 (r20607)
@@ -25,7 +25,7 @@
#include "libavutil/avutil.h"
#define LIBAVFILTER_VERSION_MAJOR 1
-#define LIBAVFILTER_VERSION_MINOR 9
+#define LIBAVFILTER_VERSION_MINOR 10
#define LIBAVFILTER_VERSION_MICRO 0
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
@@ -595,6 +595,14 @@ int avfilter_register(AVFilter *filter);
AVFilter *avfilter_get_by_name(const char *name);
/**
+ * If filter is NULL, returns a pointer to the first registered filter pointer,
+ * if filter is non-NULL, returns the next pointer after filter.
+ * If the returned pointer points to NULL, the last registered filter
+ * was already reached.
+ */
+AVFilter **av_filter_next(AVFilter **filter);
+
+/**
* Creates a filter instance.
* @param filter the filter to create an instance of
* @param inst_name Name to give to the new instance. Can be NULL for none.
More information about the ffmpeg-cvslog
mailing list