avcpp 3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Loading...
Searching...
No Matches
avlog.h File Reference

Bridge to the FFmpeg logging system.

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

Go to the source code of this file.

Macros

#define LOGGED_NAME   __func__
 Name used to prefix library log messages when the compiler has no PRETTY_FUNCTION.
#define null_log(level, format, ...)
 Use null context as logging context.
#define ptr_log(level, format, ...)
 Use context ptr as logging context.
#define ref_log(level, format, ...)
 Use context referenct as logging context.
#define ctx_log(ctx, level, format, ...)
 Use specific context as logging context for pretty logging.
#define fflog(level, format, ...)
 Default in-class logger.

Macro Definition Documentation

◆ ctx_log

#define ctx_log ( ctx,
level,
format,
... )
Value:
av_log(ctx, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
#define LOGGED_NAME
Name used to prefix library log messages when the compiler has no PRETTY_FUNCTION.
Definition avlog.h:25

◆ fflog

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

◆ null_log

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

◆ ptr_log

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

◆ ref_log

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