History

use global trace in encoder

ruil2 committed 12 years ago

Commit ba6b2a81 parent d63fc106 files · +48 −127Browse files

Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 6 files). Show all

Unified · Split

codec/encoder/plus/src/welsEncoderExt.cpp+9−2
@@ -186,13 +186,13 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 185 unmodified lines
186186 if (m_pWelsTrace != NULL) {
187187 const int32_t iWelsTraceExistingFlag = m_pWelsTrace->WelsTraceModuleIsExist();
188188 if (iWelsTraceExistingFlag) {
189− m_pWelsTrace->SetTraceLevel (WELS_LOG_DEFAULT);
189+ m_pWelsTrace->SetTraceLevel (WELS_LOG_ERROR);
190190 WelsSetLogCallback (welsCodecTrace::CODEC_TRACE);
191191 }
192192 }
193193
194194 // initialization
195− WelsSetLogLevel (WELS_LOG_DEFAULT); // no output, WELS_LOG_QUIET
195+ WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET
196196 }
197197
198198 /* Interfaces override from ISVCEncoder */
@@ -947,6 +947,13 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 748 unmodified lines
947947 #endif
948948 }
949949 break;
950+ case ENCODER_OPTION_TRACE_LEVEL:{
951+ if(m_pWelsTrace){
952+ uint32_t level = *((uint32_t*)pOption);
953+ m_pWelsTrace->SetTraceLevel(level);
954+ }
955+ }
956+ break;
950957 default:
951958 return cmInitParaError;
952959 }

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