Nothing actually used the variable that these functions handled.
Showing the changes to codec/common/src/utils.cpp (1 of 4 files). Show all
Unified · Split
| @@ -48,52 +48,8 @@ float WelsCalcPsnr (const void* kpTarPic, · 47 unmodified lines | |||
| 48 | const int32_t kiHeight); | 48 | const int32_t kiHeight); |
| 49 | 49 | ||
| 50 | 50 | ||
| 51 | static iWelsLogLevel g_iLevelLog = WELS_LOG_DEFAULT; // default log iLevel | ||
| 52 | static PWelsLogCallbackFunc wlog; | 51 | static PWelsLogCallbackFunc wlog; |
| 53 | 52 | ||
| 54 | /*! | ||
| 55 | ************************************************************************************* | ||
| 56 | * \brief set log iLevel from external call | ||
| 57 | * | ||
| 58 | * \param iLevel iLevel of log | ||
| 59 | * | ||
| 60 | * \return NONE | ||
| 61 | * | ||
| 62 | * \note can be able to control log iLevel dynamically | ||
| 63 | ************************************************************************************* | ||
| 64 | */ | ||
| 65 | void WelsSetLogLevel (const int32_t kiLevel) { | ||
| 66 | iWelsLogLevel iVal = 0; | ||
| 67 | if (kiLevel & WELS_LOG_ERROR) { | ||
| 68 | iVal |= WELS_LOG_ERROR; | ||
| 69 | } | ||
| 70 | if (kiLevel & WELS_LOG_WARNING) { | ||
| 71 | iVal |= WELS_LOG_WARNING; | ||
| 72 | } | ||
| 73 | if (kiLevel & WELS_LOG_INFO) { | ||
| 74 | iVal |= WELS_LOG_INFO; | ||
| 75 | } | ||
| 76 | if (kiLevel & WELS_LOG_DEBUG) { | ||
| 77 | iVal |= WELS_LOG_DEBUG; | ||
| 78 | } | ||
| 79 | g_iLevelLog = iVal; | ||
| 80 | } | ||
| 81 | |||
| 82 | /*! | ||
| 83 | ************************************************************************************* | ||
| 84 | * \brief get log iLevel from external call | ||
| 85 | * | ||
| 86 | * \param N/A | ||
| 87 | * | ||
| 88 | * \return current iLevel of log used in codec internal | ||
| 89 | * | ||
| 90 | * \note can be able to get log iLevel of internal codec applicable | ||
| 91 | ************************************************************************************* | ||
| 92 | */ | ||
| 93 | int32_t WelsGetLogLevel (void) { | ||
| 94 | return g_iLevelLog; | ||
| 95 | } | ||
| 96 | |||
| 97 | /*! | 53 | /*! |
| 98 | ************************************************************************************* | 54 | ************************************************************************************* |
| 99 | * \brief set log callback from external call | 55 | * \brief set log callback from external call |