ffmpeg-20150921/libavcodec/libopenh264enc.c
// Convert libopenh264 log level to equivalent ffmpeg log level.
Convert libopenh264 log level to equivalent ffmpeg log level.
Convert libopenh264 log level to equivalent ffmpeg log level .
static int libopenh264_to_ffmpeg_log_level  (
    int libopenh264_log_level
    )
{
    if      (libopenh264_log_level >= WELS_LOG_DETAIL)  return AV_LOG_TRACE;
    else if (libopenh264_log_level >= WELS_LOG_DEBUG)   return AV_LOG_DEBUG;
    else if (libopenh264_log_level >= WELS_LOG_INFO)    return AV_LOG_INFO;
    else if (libopenh264_log_level >= WELS_LOG_WARNING) return AV_LOG_WARNING;
    else if (libopenh264_log_level >= WELS_LOG_ERROR)   return AV_LOG_ERROR;
    else                                                return AV_LOG_QUIET;
}
static int libopenh264_to_ffmpeg_log_level ( int libopenh264_log_level ) { if ( libopenh264_log_level >= WELS_LOG_DETAIL ) return AV_LOG_TRACE ; else if ( libopenh264_log_level >= WELS_LOG_DEBUG ) return AV_LOG_DEBUG ; else if ( libopenh264_log_level >= WELS_LOG_INFO ) return AV_LOG_INFO ; else if ( libopenh264_log_level >= WELS_LOG_WARNING ) return AV_LOG_WARNING ; else if ( libopenh264_log_level >= WELS_LOG_ERROR ) return AV_LOG_ERROR ; else return AV_LOG_QUIET ; }
Convert libopenh264 log level to equivalent ffmpeg log level.
Convert libopenh264 log level to equivalent ffmpeg log level .