Revision 95a6a015 libavutil/log.h

View differences:

libavutil/log.h
24 24
#include <stdarg.h>
25 25

  
26 26
/**
27
 * Used by av_log
27
 * Describes the class of an AVClass context structure, that is an
28
 * arbitrary struct of which the first field is a pointer to an
29
 * AVClass struct (e.g. AVCodecContext, AVFormatContext etc.).
28 30
 */
29 31
typedef struct AVCLASS AVClass;
30 32
struct AVCLASS {
33
    /**
34
     * the name of the class, usually it is the same name of the
35
     * context structure type to which the AVClass is associated
36
     */
31 37
    const char* class_name;
32
    const char* (*item_name)(void*); /* actually passing a pointer to an AVCodecContext
33
                                        or AVFormatContext, which begin with an AVClass.
34
                                        Needed because av_log is in libavcodec and has no visibility
35
                                        of AVIn/OutputFormat */
38

  
39
    /**
40
     * a pointer to a function which returns the name of a context
41
     * instance \p ctx associated with the class
42
     */
43
    const char* (*item_name)(void* ctx);
44

  
45
    /**
46
     * a pointer to the first option specified in the class if any or NULL
47
     *
48
     * @see av_set_default_options()
49
     */
36 50
    const struct AVOption *option;
37 51
};
38 52

  

Also available in: Unified diff