avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
src
avlog.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <stdarg.h>
4
5
#include "
ffmpeg.h
"
6
7
#ifdef __PRETTY_FUNCTION__
8
#define LOGGED_NAME __PRETTY_FUNCTION__
9
#else
10
// should exist on C++11 compiler
11
#define LOGGED_NAME __func__
12
#endif
13
15
#define null_log(level, format, ...) av_log(nullptr, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
16
18
#define ptr_log(level, format, ...) av_log(m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
19
21
#define ref_log(level, format, ...) av_log(&m_raw, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
22
24
#define ctx_log(ctx, level, format, ...) av_log(ctx, level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
25
27
#define fflog(level, format, ...) _log(level, "%s: " format, LOGGED_NAME, ##__VA_ARGS__)
28
ffmpeg.h
Generated by
1.8.17