summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorVitor Sessak <vitor1001@gmail.com>2008-02-15 22:13:05 +0000
committerVitor Sessak <vitor1001@gmail.com>2008-02-15 22:13:05 +0000
commit6e365c5720c6b6e17d40473f8e5c0a219de8a1b3 (patch)
tree5b458f8cfa2c7f996fbbf342054e42aa6bb8ba65 /libavfilter
parent443e73f08f66bc4484c8757f6cfd6de02b0f558f (diff)
Allow code to pass data to filters it creates.
Commited in SoC by Bobby Bingham on 2007-07-15 16:45:50 Originally committed as revision 12087 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avfilter.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h
index 675da11fee..a508e7387d 100644
--- a/libavfilter/avfilter.h
+++ b/libavfilter/avfilter.h
@@ -166,8 +166,10 @@ typedef struct
/**
* Filter initialization function. Args contains the user-supplied
* parameters. FIXME: maybe an AVOption-based system would be better?
+ * opaque is data provided by the code requesting creation of the filter,
+ * and is used to pass data to the filter.
*/
- int (*init)(AVFilterContext *ctx, const char *args);
+ int (*init)(AVFilterContext *ctx, const char *args, const void *opaque);
void (*uninit)(AVFilterContext *ctx);
const AVFilterPad *inputs; /// NULL terminated list of inputs. NULL if none
@@ -220,7 +222,7 @@ AVFilter *avfilter_get_by_name(char *name);
AVFilterContext *avfilter_create(AVFilter *filter, char *inst_name);
AVFilterContext *avfilter_create_by_name(char *name, char *inst_name);
-int avfilter_init_filter(AVFilterContext *filter, const char *args);
+int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque);
void avfilter_destroy(AVFilterContext *filter);
int *avfilter_make_format_list(int len, ...);