23#include <wels/codec_api.h>
24#include <wels/codec_ver.h>
34 if (libopenh264_log_level >= WELS_LOG_DETAIL)
return AV_LOG_TRACE;
35 else if (libopenh264_log_level >= WELS_LOG_DEBUG)
return AV_LOG_DEBUG;
36 else if (libopenh264_log_level >= WELS_LOG_INFO)
return AV_LOG_VERBOSE;
37 else if (libopenh264_log_level >= WELS_LOG_WARNING)
return AV_LOG_WARNING;
38 else if (libopenh264_log_level >= WELS_LOG_ERROR)
return AV_LOG_ERROR;
47 av_log(
ctx, equiv_ffmpeg_log_level,
"%s\n", msg);
static AVFormatContext * ctx
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#define AV_LOG_QUIET
Print no output.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_VERBOSE
Detailed information.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
void ff_libopenh264_trace_callback(void *ctx, int level, const char *msg)
static int libopenh264_to_ffmpeg_log_level(int libopenh264_log_level)