FFmpeg  1.2.4
Data Structures | Macros | Typedefs | Enumerations | Functions
log.h File Reference
#include <stdarg.h>
#include "avutil.h"
#include "attributes.h"

Go to the source code of this file.

Data Structures

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

Macros

#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_QUIET   -8
#define AV_LOG_PANIC   0
#define AV_LOG_FATAL   8
#define AV_LOG_ERROR   16
#define AV_LOG_WARNING   24
#define AV_LOG_INFO   32
#define AV_LOG_VERBOSE   40
#define AV_LOG_DEBUG   48
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_SKIP_REPEATED   1
#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.
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define av_dlog(pctx,...)   do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
 av_dlog macros Useful to print debug messages that shouldn't get compiled in normally.
#define AV_LOG_SKIP_REPEATED   1
 Skip repeated messages, this requires the user app to use av_log() instead of (f)printf as the 2 would otherwise interfere and lead to "Last message repeated x times" messages below (f)printf messages with some bad luck.

Typedefs

typedef struct AVClass AVClass
 Describe the class of an AVClass context structure.

Enumerations

enum  AVClassCategory {
  AV_CLASS_CATEGORY_NA = 0, AV_CLASS_CATEGORY_INPUT, AV_CLASS_CATEGORY_OUTPUT, AV_CLASS_CATEGORY_MUXER,
  AV_CLASS_CATEGORY_DEMUXER, AV_CLASS_CATEGORY_ENCODER, AV_CLASS_CATEGORY_DECODER, AV_CLASS_CATEGORY_FILTER,
  AV_CLASS_CATEGORY_BITSTREAM_FILTER, AV_CLASS_CATEGORY_SWSCALER, AV_CLASS_CATEGORY_SWRESAMPLER, AV_CLASS_CATEGORY_NB,
  AV_CLASS_CATEGORY_NA = 0, AV_CLASS_CATEGORY_INPUT, AV_CLASS_CATEGORY_OUTPUT, AV_CLASS_CATEGORY_MUXER,
  AV_CLASS_CATEGORY_DEMUXER, AV_CLASS_CATEGORY_ENCODER, AV_CLASS_CATEGORY_DECODER, AV_CLASS_CATEGORY_FILTER,
  AV_CLASS_CATEGORY_BITSTREAM_FILTER, AV_CLASS_CATEGORY_SWSCALER, AV_CLASS_CATEGORY_SWRESAMPLER, AV_CLASS_CATEGORY_NB,
  AV_CLASS_CATEGORY_NA = 0, AV_CLASS_CATEGORY_INPUT, AV_CLASS_CATEGORY_OUTPUT, AV_CLASS_CATEGORY_MUXER,
  AV_CLASS_CATEGORY_DEMUXER, AV_CLASS_CATEGORY_ENCODER, AV_CLASS_CATEGORY_DECODER, AV_CLASS_CATEGORY_FILTER,
  AV_CLASS_CATEGORY_BITSTREAM_FILTER, AV_CLASS_CATEGORY_SWSCALER, AV_CLASS_CATEGORY_SWRESAMPLER, AV_CLASS_CATEGORY_NB
}

Functions

void av_log (void *avcl, int level, const char *fmt,...) av_printf_format(3
 Send the specified message to the log if the level is less than or equal to the current av_log_level.
void void av_vlog (void *avcl, 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)
const char * av_default_item_name (void *ctx)
AVClassCategory av_default_get_category (void *ptr)
void av_log_format_line (void *ptr, int level, const char *fmt, va_list vl, char *line, int line_size, int *print_prefix)
 Format a line of log the same way as the default callback.
void av_log_set_flags (int arg)

Macro Definition Documentation

#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)

av_dlog macros Useful to print debug messages that shouldn't get compiled in normally.

Definition at line 208 of file log.h.

#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define av_dlog (   pctx,
  ... 
)    do { if (0) av_log(pctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48

Stuff which is only useful for libav* developers.

Definition at line 162 of file log.h.

#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_DEBUG   48
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16

Something went wrong and cannot losslessly be recovered.

However, not all future data is affected.

Definition at line 148 of file log.h.

#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_ERROR   16
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#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 142 of file log.h.

#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_FATAL   8
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32

Definition at line 156 of file log.h.

#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_INFO   32
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)

Definition at line 164 of file log.h.

#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_MAX_OFFSET   (AV_LOG_DEBUG - AV_LOG_QUIET)
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0

Something went really wrong and we will crash now.

Definition at line 135 of file log.h.

#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_PANIC   0
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8

Definition at line 130 of file log.h.

#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_QUIET   -8
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1

Skip repeated messages, this requires the user app to use av_log() instead of (f)printf as the 2 would otherwise interfere and lead to "Last message repeated x times" messages below (f)printf messages with some bad luck.

Also to receive the last, "last repeated" line if any, the user app must call av_log(NULL, AV_LOG_QUIET, "%s", ""); at the end

Definition at line 219 of file log.h.

#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_SKIP_REPEATED   1
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40

Definition at line 157 of file log.h.

#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_VERBOSE   40
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#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 154 of file log.h.

#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24
#define AV_LOG_WARNING   24

Typedef Documentation

typedef struct AVClass AVClass

Describe the class of an AVClass context structure.

That is an arbitrary struct of which the first field is a pointer to an AVClass struct (e.g. AVCodecContext, AVFormatContext etc.).

Enumeration Type Documentation

Enumerator:
AV_CLASS_CATEGORY_NA 
AV_CLASS_CATEGORY_INPUT 
AV_CLASS_CATEGORY_OUTPUT 
AV_CLASS_CATEGORY_MUXER 
AV_CLASS_CATEGORY_DEMUXER 
AV_CLASS_CATEGORY_ENCODER 
AV_CLASS_CATEGORY_DECODER 
AV_CLASS_CATEGORY_FILTER 
AV_CLASS_CATEGORY_BITSTREAM_FILTER 
AV_CLASS_CATEGORY_SWSCALER 
AV_CLASS_CATEGORY_SWRESAMPLER 
AV_CLASS_CATEGORY_NB 

not part of ABI/API

AV_CLASS_CATEGORY_NA 
AV_CLASS_CATEGORY_INPUT 
AV_CLASS_CATEGORY_OUTPUT 
AV_CLASS_CATEGORY_MUXER 
AV_CLASS_CATEGORY_DEMUXER 
AV_CLASS_CATEGORY_ENCODER 
AV_CLASS_CATEGORY_DECODER 
AV_CLASS_CATEGORY_FILTER 
AV_CLASS_CATEGORY_BITSTREAM_FILTER 
AV_CLASS_CATEGORY_SWSCALER 
AV_CLASS_CATEGORY_SWRESAMPLER 
AV_CLASS_CATEGORY_NB 

not part of ABI/API

AV_CLASS_CATEGORY_NA 
AV_CLASS_CATEGORY_INPUT 
AV_CLASS_CATEGORY_OUTPUT 
AV_CLASS_CATEGORY_MUXER 
AV_CLASS_CATEGORY_DEMUXER 
AV_CLASS_CATEGORY_ENCODER 
AV_CLASS_CATEGORY_DECODER 
AV_CLASS_CATEGORY_FILTER 
AV_CLASS_CATEGORY_BITSTREAM_FILTER 
AV_CLASS_CATEGORY_SWSCALER 
AV_CLASS_CATEGORY_SWRESAMPLER 
AV_CLASS_CATEGORY_NB 

not part of ABI/API

Definition at line 28 of file log.h.

Function Documentation

AVClassCategory av_default_get_category ( void ptr)

Definition at line 142 of file log.c.

const char* av_default_item_name ( void ctx)

Definition at line 137 of file log.c.

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

Send 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
avclA pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct.
levelThe importance level of the message, lower values signifying higher importance.
fmtThe format string (printf-compatible) that specifies how subsequent arguments are converted to output.
See Also
av_vlog
void av_log_default_callback ( void ptr,
int  level,
const char *  fmt,
va_list  vl 
)

Definition at line 202 of file log.c.

void av_log_format_line ( void ptr,
int  level,
const char *  fmt,
va_list  vl,
char *  line,
int  line_size,
int *  print_prefix 
)

Format a line of log the same way as the default callback.

Parameters
linebuffer to receive the formated line
line_sizesize of the buffer
print_prefixused to store whether the prefix must be printed; must point to a persistent integer initially set to 1

Definition at line 194 of file log.c.

int av_log_get_level ( void  )

Definition at line 262 of file log.c.

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

Definition at line 277 of file log.c.

void av_log_set_flags ( int  arg)

Definition at line 272 of file log.c.

void av_log_set_level ( int  )

Definition at line 267 of file log.c.

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

Definition at line 256 of file log.c.