00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef AVUTIL_LOG_H
00022 #define AVUTIL_LOG_H
00023
00024 #include <stdarg.h>
00025 #include "avutil.h"
00026
00032 typedef struct {
00037 const char* class_name;
00038
00043 const char* (*item_name)(void* ctx);
00044
00050 const struct AVOption *option;
00051 } AVClass;
00052
00053
00054
00055 #define AV_LOG_QUIET -8
00056
00060 #define AV_LOG_PANIC 0
00061
00067 #define AV_LOG_FATAL 8
00068
00073 #define AV_LOG_ERROR 16
00074
00079 #define AV_LOG_WARNING 24
00080
00081 #define AV_LOG_INFO 32
00082 #define AV_LOG_VERBOSE 40
00083
00087 #define AV_LOG_DEBUG 48
00088
00103 #ifdef __GNUC__
00104 void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4)));
00105 #else
00106 void av_log(void*, int level, const char *fmt, ...);
00107 #endif
00108
00109 void av_vlog(void*, int level, const char *fmt, va_list);
00110 int av_log_get_level(void);
00111 void av_log_set_level(int);
00112 void av_log_set_callback(void (*)(void*, int, const char*, va_list));
00113 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
00114
00115 #endif