History

Remove the unnecessary WelsSet/GetLogLevel functions

Nothing actually used the variable that these functions handled.

Martin Storsjö committed 12 years ago

Commit 40af75c1 parent ba1de164 files · +0 −76Browse files

Unified · Split

4 files
  1. codec/common/inc/utils.h +0 −26
  2. codec/common/src/utils.cpp +0 −44
  3. codec/decoder/plus/src/welsDecoderExt.cpp +0 −3
  4. codec/encoder/plus/src/welsEncoderExt.cpp +0 −3
codec/common/inc/utils.h+0−26
@@ -82,32 +82,6 @@ extern void WelsLog (void* pCtx, int32_t iLevel, const char* kpFmt, ...) __attri · 81 unmodified lines
8282 extern void WelsLog (void* pCtx, int32_t iLevel, const char* kpFmt, ...);
8383 #endif
8484
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−
11185 /*!
11286 *************************************************************************************
11387 * \brief set log callback from external call
codec/common/src/utils.cpp+0−44
@@ -48,52 +48,8 @@ float WelsCalcPsnr (const void* kpTarPic, · 47 unmodified lines
4848 const int32_t kiHeight);
4949
5050
51−static iWelsLogLevel g_iLevelLog = WELS_LOG_DEFAULT; // default log iLevel
5251 static PWelsLogCallbackFunc wlog;
5352
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−
9753 /*!
9854 *************************************************************************************
9955 * \brief set log callback from external call
codec/decoder/plus/src/welsDecoderExt.cpp+0−3
@@ -109,9 +109,6 @@ CWelsDecoder::CWelsDecoder (void) · 108 unmodified lines
109109 }
110110 }
111111
112− // initialization
113− WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET
114−
115112 WelsLog (NULL, WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry");
116113
117114 #ifdef OUTPUT_BIT_STREAM
codec/encoder/plus/src/welsEncoderExt.cpp+0−3
@@ -178,9 +178,6 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 177 unmodified lines
178178 WelsSetLogCallback (welsCodecTrace::CODEC_TRACE);
179179 }
180180 }
181−
182− // initialization
183− WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET
184181 }
185182
186183 /* Interfaces override from ISVCEncoder */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t