Disable B-frames decoding until they produce correct picture
[libav.git] / libavutil / log.h
CommitLineData
4b45de0e
LA
1#ifndef LOG_H
2#define LOG_H
3
4#include <stdarg.h>
5
6/**
7 * Used by av_log
8 */
9typedef struct AVCLASS AVClass;
10struct AVCLASS {
11 const char* class_name;
12 const char* (*item_name)(void*); /* actually passing a pointer to an AVCodecContext
13 or AVFormatContext, which begin with an AVClass.
14 Needed because av_log is in libavcodec and has no visibility
15 of AVIn/OutputFormat */
16 struct AVOption *option;
17};
18
19/* av_log API */
20
21#define AV_LOG_QUIET -1
22#define AV_LOG_ERROR 0
23#define AV_LOG_INFO 1
24#define AV_LOG_DEBUG 2
918a4591 25extern int av_log_level;
4b45de0e
LA
26
27#ifdef __GNUC__
28extern void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4)));
29#else
30extern void av_log(void*, int level, const char *fmt, ...);
31#endif
32
918a4591 33#if LIBAVUTIL_VERSION_INT < (50<<16)
4b45de0e
LA
34extern void av_vlog(void*, int level, const char *fmt, va_list);
35extern int av_log_get_level(void);
36extern void av_log_set_level(int);
37extern void av_log_set_callback(void (*)(void*, int, const char*, va_list));
918a4591
MN
38#else
39extern void (*av_vlog)(void*, int, const char*, va_list);
40#endif
4b45de0e
LA
41
42#endif /* LOG_H */