Libav
|
00001 /* 00002 * copyright (c) 2006 Michael Niedermayer <michaelni@gmx.at> 00003 * 00004 * This file is part of FFmpeg. 00005 * 00006 * FFmpeg is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU Lesser General Public 00008 * License as published by the Free Software Foundation; either 00009 * version 2.1 of the License, or (at your option) any later version. 00010 * 00011 * FFmpeg is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 * Lesser General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU Lesser General Public 00017 * License along with FFmpeg; if not, write to the Free Software 00018 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 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 00058 int version; 00059 } AVClass; 00060 00061 /* av_log API */ 00062 00063 #define AV_LOG_QUIET -8 00064 00068 #define AV_LOG_PANIC 0 00069 00075 #define AV_LOG_FATAL 8 00076 00081 #define AV_LOG_ERROR 16 00082 00087 #define AV_LOG_WARNING 24 00088 00089 #define AV_LOG_INFO 32 00090 #define AV_LOG_VERBOSE 40 00091 00095 #define AV_LOG_DEBUG 48 00096 00111 #ifdef __GNUC__ 00112 void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4))); 00113 #else 00114 void av_log(void*, int level, const char *fmt, ...); 00115 #endif 00116 00117 void av_vlog(void*, int level, const char *fmt, va_list); 00118 int av_log_get_level(void); 00119 void av_log_set_level(int); 00120 void av_log_set_callback(void (*)(void*, int, const char*, va_list)); 00121 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl); 00122 00123 #endif /* AVUTIL_LOG_H */