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
186 if (m_pWelsTrace != NULL) {186 if (m_pWelsTrace != NULL) {
187 const int32_t iWelsTraceExistingFlag = m_pWelsTrace->WelsTraceModuleIsExist();187 const int32_t iWelsTraceExistingFlag = m_pWelsTrace->WelsTraceModuleIsExist();
188 if (iWelsTraceExistingFlag) {188 if (iWelsTraceExistingFlag) {
189 m_pWelsTrace->SetTraceLevel (WELS_LOG_DEFAULT);189 m_pWelsTrace->SetTraceLevel (WELS_LOG_ERROR);
190 WelsSetLogCallback (welsCodecTrace::CODEC_TRACE);190 WelsSetLogCallback (welsCodecTrace::CODEC_TRACE);
191 }191 }
192 }192 }
193 193
194 // initialization194 // initialization
195 WelsSetLogLevel (WELS_LOG_DEFAULT); // no output, WELS_LOG_QUIET195 WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET
196}196}
197 197
198/* Interfaces override from ISVCEncoder */198/* Interfaces override from ISVCEncoder */
@@ -947,6 +947,13 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 748 unmodified lines
947#endif947#endif
948 }948 }
949 break;949 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;
950 default:957 default:
951 return cmInitParaError;958 return cmInitParaError;
952 }959 }

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