diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-24 00:51:40 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2010-09-24 00:51:40 +0000 |
commit | e44c01563f03bf5cd0b6e59fd32f145db3861b33 (patch) | |
tree | 9b2bc01bb182ffd3ac0fb680768c4a1fed40dddd /libavcodec/opt.h | |
parent | 47941088f9d157216e942f6172cd39378493f52d (diff) | |
download | ffmpeg-streaming-e44c01563f03bf5cd0b6e59fd32f145db3861b33.zip ffmpeg-streaming-e44c01563f03bf5cd0b6e59fd32f145db3861b33.tar.gz |
Deprecate av_opt_show() in favor of a new function av_opt_show2(),
which allows to specify only a subset of all the options to show.
Originally committed as revision 25166 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/opt.h')
-rw-r--r-- | libavcodec/opt.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/libavcodec/opt.h b/libavcodec/opt.h index 9f0da72..ca56141 100644 --- a/libavcodec/opt.h +++ b/libavcodec/opt.h @@ -204,7 +204,25 @@ AVRational av_get_q(void *obj, const char *name, const AVOption **o_out); int64_t av_get_int(void *obj, const char *name, const AVOption **o_out); const char *av_get_string(void *obj, const char *name, const AVOption **o_out, char *buf, int buf_len); const AVOption *av_next_option(void *obj, const AVOption *last); -int av_opt_show(void *obj, void *av_log_obj); + +#if FF_API_OPT_SHOW +/** + * @deprecated Use av_opt_show2() instead. + */ +attribute_deprecated int av_opt_show(void *obj, void *av_log_obj); +#endif + +/** + * Show the obj options. + * + * @param req_flags requested flags for the options to show. Show only the + * options for which it is opt->flags & req_flags. + * @param rej_flags rejected flags for the options to show. Show only the + * options for which it is !(opt->flags & req_flags). + * @param av_log_obj log context to use for showing the options + */ +int av_opt_show2(void *obj, void *av_log_obj, int req_flags, int rej_flags); + void av_opt_set_defaults(void *s); void av_opt_set_defaults2(void *s, int mask, int flags); |