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

Showing the changes to codec/common/src/utils.cpp (1 of 4 files). Show all

Unified · Split

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

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