18
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
24
24
#include <stdarg.h>
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.).
29
31
typedef struct AVCLASS AVClass;
34
* the name of the class, usually it is the same name of the
35
* context structure type to which the AVClass is associated
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 */
40
* a pointer to a function which returns the name of a context
41
* instance \p ctx associated with the class
43
const char* (*item_name)(void* ctx);
46
* a pointer to the first option specified in the class if any or NULL
48
* @see av_set_default_options()
36
50
const struct AVOption *option;
82
96
#define AV_LOG_DEBUG 48
99
#if LIBAVUTIL_VERSION_INT < (50<<16)
84
100
extern int av_log_level;
104
* Send the specified message to the log if the level is less than or equal to
105
* the current av_log_level. By default, all logging messages are sent to
106
* stderr. This behavior can be altered by setting a different av_vlog callback
109
* @param avcl A pointer to an arbitrary struct of which the first field is a
110
* pointer to an AVClass struct.
111
* @param level The importance level of the message, lower values signifying
113
* @param fmt The format string (printf-compatible) that specifies how
114
* subsequent arguments are converted to output.
87
extern void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4)));
89
extern void av_log(void*, int level, const char *fmt, ...);
92
#if LIBAVUTIL_VERSION_INT < (50<<16)
93
extern void av_vlog(void*, int level, const char *fmt, va_list);
94
extern int av_log_get_level(void);
95
extern void av_log_set_level(int);
96
extern void av_log_set_callback(void (*)(void*, int, const char*, va_list));
97
extern void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
99
extern void (*av_vlog)(void*, int, const char*, va_list);
118
void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4)));
120
void av_log(void*, int level, const char *fmt, ...);
123
void av_vlog(void*, int level, const char *fmt, va_list);
124
int av_log_get_level(void);
125
void av_log_set_level(int);
126
void av_log_set_callback(void (*)(void*, int, const char*, va_list));
127
void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
129
#endif /* FFMPEG_LOG_H */