avcpp
3.1.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
Toggle main menu visibility
Loading...
Searching...
No Matches
avlog.h
Go to the documentation of this file.
1
#pragma once
2
9
10
#include <stdarg.h>
11
12
#include "
ffmpeg.h
"
13
14
#ifdef __PRETTY_FUNCTION__
18
#define LOGGED_NAME __PRETTY_FUNCTION__
19
#else
20
// should exist on C++11 compiler
25
#define LOGGED_NAME __func__
26
#endif
27
29
#define null_log(level, format, ...) av_log(nullptr, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
30
32
#define ptr_log(level, format, ...) av_log(m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
33
35
#define ref_log(level, format, ...) av_log(&m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
36
38
#define ctx_log(ctx, level, format, ...) av_log(ctx, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
39
41
#define fflog(level, format, ...) _log(level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
42
ffmpeg.h
FFmpeg types re-exported for the public API and small value wrappers.
avcpp
avlog.h
Generated by
1.18.0