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
82extern void WelsLog (void* pCtx, int32_t iLevel, const char* kpFmt, ...);82extern void WelsLog (void* pCtx, int32_t iLevel, const char* kpFmt, ...);
83#endif83#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 */
96void 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 */
109int32_t WelsGetLogLevel (void);
110
111/*!85/*!
112 *************************************************************************************86 *************************************************************************************
113 * \brief set log callback from external call87 * \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
48 const int32_t kiHeight);48 const int32_t kiHeight);
49 49
50 50
51static iWelsLogLevel g_iLevelLog = WELS_LOG_DEFAULT; // default log iLevel
52static PWelsLogCallbackFunc wlog;51static 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 */
65void 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 */
93int32_t WelsGetLogLevel (void) {
94 return g_iLevelLog;
95}
96
97/*!53/*!
98 *************************************************************************************54 *************************************************************************************
99 * \brief set log callback from external call55 * \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
109 }109 }
110 }110 }
111 111
112 // initialization
113 WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET
114
115 WelsLog (NULL, WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry");112 WelsLog (NULL, WELS_LOG_INFO, "CWelsDecoder::CWelsDecoder() entry");
116 113
117#ifdef OUTPUT_BIT_STREAM114#ifdef OUTPUT_BIT_STREAM
codec/encoder/plus/src/welsEncoderExt.cpp+0−3
@@ -178,9 +178,6 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 177 unmodified lines
178 WelsSetLogCallback (welsCodecTrace::CODEC_TRACE);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/* Interfaces override from ISVCEncoder */183/* 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