Nothing actually used the variable that these functions handled.
Unified · Split
| @@ -82,32 +82,6 @@ extern void WelsLog (void* pCtx, int32_t iLevel, const char* kpFmt, ...) __attri · 81 unmodified lines | ||
| 82 | 82 | extern void WelsLog (void* pCtx, int32_t iLevel, const char* kpFmt, ...); |
| 83 | 83 | #endif |
| 84 | 84 | |
| 85 | −/*! | |
| 86 | − ************************************************************************************* | |
| 87 | − * \brief set log iLevel from external call | |
| 88 | − * | |
| 89 | − * \param iLevel iLevel of log | |
| 90 | − * | |
| 91 | − * \return NONE | |
| 92 | − * | |
| 93 | − * \note can be able to control log iLevel dynamically | |
| 94 | − ************************************************************************************* | |
| 95 | − */ | |
| 96 | −void WelsSetLogLevel (const int32_t kiLevel); | |
| 97 | − | |
| 98 | −/*! | |
| 99 | − ************************************************************************************* | |
| 100 | − * \brief get log iLevel from external call | |
| 101 | − * | |
| 102 | − * \param N/A | |
| 103 | − * | |
| 104 | − * \return current iLevel of log used in codec internal | |
| 105 | − * | |
| 106 | − * \note can be able to get log iLevel of internal codec applicable | |
| 107 | − ************************************************************************************* | |
| 108 | − */ | |
| 109 | −int32_t WelsGetLogLevel (void); | |
| 110 | − | |
| 111 | 85 | /*! |
| 112 | 86 | ************************************************************************************* |
| 113 | 87 | * \brief set log callback from external call |
| @@ -48,52 +48,8 @@ float WelsCalcPsnr (const void* kpTarPic, · 47 unmodified lines | ||
| 48 | 48 | const int32_t kiHeight); |
| 49 | 49 | |
| 50 | 50 | |
| 51 | −static iWelsLogLevel g_iLevelLog = WELS_LOG_DEFAULT; // default log iLevel | |
| 52 | 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 | 55 | * \brief set log callback from external call |
| @@ -109,9 +109,6 @@ CWelsDecoder::CWelsDecoder (void) · 108 unmodified lines | ||
| 109 | 109 | } |
| 110 | 110 | } |
| 111 | 111 | |
| 112 | − // initialization | |
| 113 | − WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET | |
| 114 | − | |
| 115 | 112 | WelsLog (NULL, WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry"); |
| 116 | 113 | |
| 117 | 114 | #ifdef OUTPUT_BIT_STREAM |
| @@ -178,9 +178,6 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 177 unmodified lines | ||
| 178 | 178 | WelsSetLogCallback (welsCodecTrace::CODEC_TRACE); |
| 179 | 179 | } |
| 180 | 180 | } |
| 181 | − | |
| 182 | − // initialization | |
| 183 | − WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET | |
| 184 | 181 | } |
| 185 | 182 | |
| 186 | 183 | /* Interfaces override from ISVCEncoder */ |