avcpp  2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Macros
avlog.h File Reference
#include <stdarg.h>
#include "ffmpeg.h"
Include dependency graph for avlog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define LOGGED_NAME   __func__
 
#define null_log(level, format, ...)   av_log(nullptr, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
 Use null context as logging context. More...
 
#define ptr_log(level, format, ...)   av_log(m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
 Use context ptr as logging context. More...
 
#define ref_log(level, format, ...)   av_log(&m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
 Use context referenct as logging context. More...
 
#define ctx_log(ctx, level, format, ...)   av_log(ctx, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
 Use specific context as logging context for pretty logging. More...
 
#define fflog(level, format, ...)   _log(level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
 Default in-class logger. More...
 

Macro Definition Documentation

◆ ctx_log

#define ctx_log (   ctx,
  level,
  format,
  ... 
)    av_log(ctx, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)

Use specific context as logging context for pretty logging.

◆ fflog

#define fflog (   level,
  format,
  ... 
)    _log(level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)

Default in-class logger.

◆ LOGGED_NAME

#define LOGGED_NAME   __func__

◆ null_log

#define null_log (   level,
  format,
  ... 
)    av_log(nullptr, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)

Use null context as logging context.

◆ ptr_log

#define ptr_log (   level,
  format,
  ... 
)    av_log(m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)

Use context ptr as logging context.

◆ ref_log

#define ref_log (   level,
  format,
  ... 
)    av_log(&m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)

Use context referenct as logging context.