diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 22:12:37 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-02-15 22:12:37 +0000 |
commit | 4d96a914f9efab2650811932ccf3d213bd8e0729 (patch) | |
tree | 64a2f44b550b02df3b13dd8fbaf0d7f79ae61af4 /libavfilter/avfilter.h | |
parent | bbf42679c5757a81c5e9c077ecb8d5e7bac9dd87 (diff) | |
download | ffmpeg-4d96a914f9efab2650811932ccf3d213bd8e0729.tar.gz |
Support passing parameters to filters.
Commited in SoC by Bobby Bingham on 2007-07-02 15:17:22
Originally committed as revision 12079 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r-- | libavfilter/avfilter.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 7956147032..2e50467633 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -149,7 +149,11 @@ typedef struct int priv_size; - int (*init)(AVFilterContext *ctx); + /** + * Filter initialization function. Args contains the user-supplied + * parameters. FIXME: maybe an AVOption-based system would be better? + */ + int (*init)(AVFilterContext *ctx, const char *args); void (*uninit)(AVFilterContext *ctx); const AVFilterPad *inputs; /// NULL terminated list of inputs. NULL if none @@ -199,7 +203,7 @@ AVFilter *avfilter_get_by_name(char *name); AVFilterContext *avfilter_create(AVFilter *filter); AVFilterContext *avfilter_create_by_name(char *name); -int avfilter_init_filter(AVFilterContext *filter); +int avfilter_init_filter(AVFilterContext *filter, const char *args); void avfilter_destroy(AVFilterContext *filter); #endif /* FFMPEG_AVFILTER_H */ |