diff options
author | Nicolas George <nicolas.george@normalesup.org> | 2013-03-16 20:40:30 +0100 |
---|---|---|
committer | Nicolas George <nicolas.george@normalesup.org> | 2013-03-20 21:13:56 +0100 |
commit | befbcc374d8b8b00d6c70b64bfdc51dd25ba906d (patch) | |
tree | 9821744fe07554406fed2db5a03d16d14f01296b /libavfilter/avfilter.h | |
parent | cdd78a65f470aef5fd5d295bc0f7154d0cd442c1 (diff) | |
download | ffmpeg-streaming-befbcc374d8b8b00d6c70b64bfdc51dd25ba906d.zip ffmpeg-streaming-befbcc374d8b8b00d6c70b64bfdc51dd25ba906d.tar.gz |
lavfi: add common code to handle options parsing.
Diffstat (limited to 'libavfilter/avfilter.h')
-rw-r--r-- | libavfilter/avfilter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 45ad6f9..455161f 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -486,6 +486,15 @@ typedef struct AVFilter { int (*init_opaque)(AVFilterContext *ctx, const char *args, void *opaque); const AVClass *priv_class; ///< private class, containing filter specific options + + /** + * Shorthand syntax for init arguments. + * If this field is set (even to an empty list), just before init the + * private class will be set and the arguments string will be parsed + * using av_opt_set_from_string() with "=" and ":" delimiters, and + * av_opt_free() will be called just after uninit. + */ + const char *const *shorthand; } AVFilter; /** An instance of a filter */ |