ffmpeg-20150921/libavcodec/libopenh264enc.c
// Convert ffmpeg log level to equivalent libopenh264 log level.  Given the
// conversions below, you must set the ffmpeg log level to something greater
// than AV_LOG_DEBUG if you want to see WELS_LOG_DETAIL messages.
Convert ffmpeg log level to equivalent libopenh264 log level.  Given the
conversions below, you must set the ffmpeg log level to something greater
than AV_LOG_DEBUG if you want to see WELS_LOG_DETAIL messages.
Convert ffmpeg log level to equivalent libopenh264 log level . Given the conversions below you must set the ffmpeg log level to something greater than AV_LOG_DEBUG if you want to see WELS_LOG_DETAIL messages .
static int ffmpeg_to_libopenh264_log_level  (
    int ffmpeg_log_level
    )
{
    if      (ffmpeg_log_level >  AV_LOG_DEBUG)   return WELS_LOG_DETAIL;
    else if (ffmpeg_log_level >= AV_LOG_DEBUG)   return WELS_LOG_DEBUG;
    else if (ffmpeg_log_level >= AV_LOG_INFO)    return WELS_LOG_INFO;
    else if (ffmpeg_log_level >= AV_LOG_WARNING) return WELS_LOG_WARNING;
    else if (ffmpeg_log_level >= AV_LOG_ERROR)   return WELS_LOG_ERROR;
    else                                         return WELS_LOG_QUIET;
}
static int ffmpeg_to_libopenh264_log_level ( int ffmpeg_log_level ) { if ( ffmpeg_log_level > AV_LOG_DEBUG ) return WELS_LOG_DETAIL ; else if ( ffmpeg_log_level >= AV_LOG_DEBUG ) return WELS_LOG_DEBUG ; else if ( ffmpeg_log_level >= AV_LOG_INFO ) return WELS_LOG_INFO ; else if ( ffmpeg_log_level >= AV_LOG_WARNING ) return WELS_LOG_WARNING ; else if ( ffmpeg_log_level >= AV_LOG_ERROR ) return WELS_LOG_ERROR ; else return WELS_LOG_QUIET ; }
Convert ffmpeg log level to equivalent libopenh264 log level.
Convert ffmpeg log level to equivalent libopenh264 log level .