23 #include <wels/codec_api.h>
24 #include <wels/codec_ver.h>
33 if (libopenh264_log_level >= WELS_LOG_DETAIL)
return AV_LOG_TRACE;
34 else if (libopenh264_log_level >= WELS_LOG_DEBUG)
return AV_LOG_DEBUG;
35 else if (libopenh264_log_level >= WELS_LOG_INFO)
return AV_LOG_VERBOSE;
36 else if (libopenh264_log_level >= WELS_LOG_WARNING)
return AV_LOG_WARNING;
37 else if (libopenh264_log_level >= WELS_LOG_ERROR)
return AV_LOG_ERROR;
46 av_log(ctx, equiv_ffmpeg_log_level,
"%s\n", msg);
54 #if !defined(_WIN32) || !defined(__GNUC__) || !ARCH_X86_32 || AV_GCC_VERSION_AT_LEAST(4, 7)
55 OpenH264Version libver = WelsGetCodecVersion();
56 if (memcmp(&libver, &g_stCodecVersion,
sizeof(libver))) {
void ff_libopenh264_trace_callback(void *ctx, int level, const char *msg)
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_QUIET
Print no output.
#define AV_LOG_TRACE
Extremely verbose debugging, useful for libav* development.
#define AV_LOG_VERBOSE
Detailed information.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
static int libopenh264_to_ffmpeg_log_level(int libopenh264_log_level)
int ff_libopenh264_check_version(void *logctx)