libavutil/log.h File Reference

#include <stdarg.h>
#include "avutil.h"

Go to the source code of this file.

Data Structures

struct  AVClass
 Describes the class of an AVClass context structure. More...

Defines

#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
 Something went really wrong and we will crash now.
#define AV_LOG_FATAL   8
 Something went wrong and recovery is not possible.
#define AV_LOG_ERROR   16
 Something went wrong and cannot losslessly be recovered.
#define AV_LOG_WARNING   24
 Something somehow does not look correct.
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
 Stuff which is only useful for libav* developers.

Functions

void av_log (void *, int level, const char *fmt,...)
 Sends the specified message to the log if the level is less than or equal to the current av_log_level.
void av_vlog (void *, int level, const char *fmt, va_list)
int av_log_get_level (void)
void av_log_set_level (int)
void av_log_set_callback (void(*)(void *, int, const char *, va_list))
void av_log_default_callback (void *ptr, int level, const char *fmt, va_list vl)


Define Documentation

#define AV_LOG_DEBUG   48

Stuff which is only useful for libav* developers.

Definition at line 87 of file log.h.

#define AV_LOG_ERROR   16

Something went wrong and cannot losslessly be recovered.

However, not all future data is affected.

Definition at line 73 of file log.h.

#define AV_LOG_FATAL   8

Something went wrong and recovery is not possible.

For example, no header was found for a format which depends on headers or an illegal combination of parameters is used.

Definition at line 67 of file log.h.

#define AV_LOG_INFO   32

Definition at line 81 of file log.h.

#define AV_LOG_PANIC   0

Something went really wrong and we will crash now.

Definition at line 60 of file log.h.

#define AV_LOG_QUIET   -8

Definition at line 55 of file log.h.

#define AV_LOG_VERBOSE   40

Definition at line 82 of file log.h.

#define AV_LOG_WARNING   24

Something somehow does not look correct.

This may or may not lead to problems. An example would be the use of '-vstrict -2'.

Definition at line 79 of file log.h.


Function Documentation

void av_log ( void *  ,
int  level,
const char *  fmt,
  ... 
)

Sends the specified message to the log if the level is less than or equal to the current av_log_level.

By default, all logging messages are sent to stderr. This behavior can be altered by setting a different av_vlog callback function.

Parameters:
avcl A pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct.
level The importance level of the message, lower values signifying higher importance.
fmt The format string (printf-compatible) that specifies how subsequent arguments are converted to output.
See also:
av_vlog

Definition at line 66 of file log.c.

void av_log_default_callback ( void *  ptr,
int  level,
const char *  fmt,
va_list  vl 
)

Definition at line 35 of file log.c.

int av_log_get_level ( void   ) 

Definition at line 79 of file log.c.

void av_log_set_callback ( void(*)(void *, int, const char *, va_list)   ) 

Definition at line 89 of file log.c.

void av_log_set_level ( int   ) 

Definition at line 84 of file log.c.

void av_vlog ( void *  ,
int  level,
const char *  fmt,
va_list   
)

Definition at line 74 of file log.c.


Generated on Tue Apr 20 17:39:21 2010 for FFmpeg by  doxygen 1.5.6