• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

libavutil/log.h

Go to the documentation of this file.
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 AVCLASS AVClass;
00033 struct AVCLASS {
00038     const char* class_name;
00039 
00044     const char* (*item_name)(void* ctx);
00045 
00051     const struct AVOption *option;
00052 };
00053 
00054 /* av_log API */
00055 
00056 #if LIBAVUTIL_VERSION_INT < (50<<16)
00057 #define AV_LOG_QUIET -1
00058 #define AV_LOG_FATAL 0
00059 #define AV_LOG_ERROR 0
00060 #define AV_LOG_WARNING 1
00061 #define AV_LOG_INFO 1
00062 #define AV_LOG_VERBOSE 1
00063 #define AV_LOG_DEBUG 2
00064 #else
00065 #define AV_LOG_QUIET    -8
00066 
00070 #define AV_LOG_PANIC     0
00071 
00077 #define AV_LOG_FATAL     8
00078 
00083 #define AV_LOG_ERROR    16
00084 
00089 #define AV_LOG_WARNING  24
00090 
00091 #define AV_LOG_INFO     32
00092 #define AV_LOG_VERBOSE  40
00093 
00097 #define AV_LOG_DEBUG    48
00098 #endif
00099 
00100 #if LIBAVUTIL_VERSION_INT < (50<<16)
00101 extern int av_log_level;
00102 #endif
00103 
00118 #ifdef __GNUC__
00119 void av_log(void*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4)));
00120 #else
00121 void av_log(void*, int level, const char *fmt, ...);
00122 #endif
00123 
00124 void av_vlog(void*, int level, const char *fmt, va_list);
00125 int av_log_get_level(void);
00126 void av_log_set_level(int);
00127 void av_log_set_callback(void (*)(void*, int, const char*, va_list));
00128 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
00129 
00130 #endif /* AVUTIL_LOG_H */

Generated on Sat Feb 16 2013 09:23:15 for ffmpeg by  doxygen 1.7.1