Mercurial > libavutil.hg
changeset 499:67ea650d4590 libavutil
Enhance documentation for AVClass
Patch by Stefano Sabatini stefanodotsabatini-lalaatpostedotit
author | benoit |
---|---|
date | Thu, 24 Apr 2008 10:13:38 +0000 |
parents | 2ae1cc70b1c4 |
children | 727a509eed9e |
files | log.h |
diffstat | 1 files changed, 19 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/log.h Sat Apr 19 17:07:58 2008 +0000 +++ b/log.h Thu Apr 24 10:13:38 2008 +0000 @@ -24,15 +24,29 @@ #include <stdarg.h> /** - * Used by av_log + * Describes the class of an AVClass context structure, that is an + * arbitrary struct of which the first field is a pointer to an + * AVClass struct (e.g. AVCodecContext, AVFormatContext etc.). */ typedef struct AVCLASS AVClass; struct AVCLASS { + /** + * the name of the class, usually it is the same name of the + * context structure type to which the AVClass is associated + */ const char* class_name; - const char* (*item_name)(void*); /* actually passing a pointer to an AVCodecContext - or AVFormatContext, which begin with an AVClass. - Needed because av_log is in libavcodec and has no visibility - of AVIn/OutputFormat */ + + /** + * a pointer to a function which returns the name of a context + * instance \p ctx associated with the class + */ + const char* (*item_name)(void* ctx); + + /** + * a pointer to the first option specified in the class if any or NULL + * + * @see av_set_default_options() + */ const struct AVOption *option; };