ref: 40af75c19dc767affd869de87b29392744c8241d
parent: ba1de16ac219dabec8caae041144829ff23cc01f
author: Martin Storsjö <[email protected]>
date: Tue Jun 10 05:48:09 EDT 2014
Remove the unnecessary WelsSet/GetLogLevel functions Nothing actually used the variable that these functions handled.
--- a/codec/common/inc/utils.h
+++ b/codec/common/inc/utils.h
@@ -84,32 +84,6 @@
/*!
*************************************************************************************
- * \brief set log iLevel from external call
- *
- * \param iLevel iLevel of log
- *
- * \return NONE
- *
- * \note can be able to control log iLevel dynamically
- *************************************************************************************
- */
-void WelsSetLogLevel (const int32_t kiLevel);
-
-/*!
- *************************************************************************************
- * \brief get log iLevel from external call
- *
- * \param N/A
- *
- * \return current iLevel of log used in codec internal
- *
- * \note can be able to get log iLevel of internal codec applicable
- *************************************************************************************
- */
-int32_t WelsGetLogLevel (void);
-
-/*!
- *************************************************************************************
* \brief set log callback from external call
*
* \param _log log function routine
--- a/codec/common/src/utils.cpp
+++ b/codec/common/src/utils.cpp
@@ -48,51 +48,7 @@
const int32_t kiHeight);
-static iWelsLogLevel g_iLevelLog = WELS_LOG_DEFAULT; // default log iLevel
static PWelsLogCallbackFunc wlog;
-
-/*!
- *************************************************************************************
- * \brief set log iLevel from external call
- *
- * \param iLevel iLevel of log
- *
- * \return NONE
- *
- * \note can be able to control log iLevel dynamically
- *************************************************************************************
- */
-void WelsSetLogLevel (const int32_t kiLevel) {
- iWelsLogLevel iVal = 0;
- if (kiLevel & WELS_LOG_ERROR) {
- iVal |= WELS_LOG_ERROR;
- }
- if (kiLevel & WELS_LOG_WARNING) {
- iVal |= WELS_LOG_WARNING;
- }
- if (kiLevel & WELS_LOG_INFO) {
- iVal |= WELS_LOG_INFO;
- }
- if (kiLevel & WELS_LOG_DEBUG) {
- iVal |= WELS_LOG_DEBUG;
- }
- g_iLevelLog = iVal;
-}
-
-/*!
- *************************************************************************************
- * \brief get log iLevel from external call
- *
- * \param N/A
- *
- * \return current iLevel of log used in codec internal
- *
- * \note can be able to get log iLevel of internal codec applicable
- *************************************************************************************
- */
-int32_t WelsGetLogLevel (void) {
- return g_iLevelLog;
-}
/*!
*************************************************************************************
--- a/codec/decoder/plus/src/welsDecoderExt.cpp
+++ b/codec/decoder/plus/src/welsDecoderExt.cpp
@@ -109,9 +109,6 @@
}
}
- // initialization
- WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET
-
WelsLog (NULL, WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry");
#ifdef OUTPUT_BIT_STREAM
--- a/codec/encoder/plus/src/welsEncoderExt.cpp
+++ b/codec/encoder/plus/src/welsEncoderExt.cpp
@@ -178,9 +178,6 @@
WelsSetLogCallback (welsCodecTrace::CODEC_TRACE);
}
}
-
- // initialization
- WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET
}
/* Interfaces override from ISVCEncoder */