[FFmpeg-devel] [PATCH 1/2] 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.

Michael Niedermayer michaelni
Tue Sep 21 00:35:40 CEST 2010


On Mon, Sep 20, 2010 at 09:12:28PM +0200, Stefano Sabatini wrote:
[...]
> diff --git a/libavcodec/opt.h b/libavcodec/opt.h
> index 9f0da72..ef888a1 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. Only the
> + * options for which it is at least opt->flags & req_flags are shown.
> + * @param rej_flags rejected flags for the options to show. Only the
> + * options for which it is !(opt->flags & req_flags) are shown.

maybe some native could say this clearer
except that it should be ok
[...]

--
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The greatest way to live with honor in this world is to be what we pretend
to be. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20100921/85fa74ca/attachment.pgp>



More information about the ffmpeg-devel mailing list