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)
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later.That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another.Frame references ownership and permissions