Showing the changes to codec/encoder/plus/src/welsEncoderExt.cpp (1 of 6 files). Show all
Unified · Split
| @@ -186,13 +186,13 @@ void CWelsH264SVCEncoder::InitEncoder (void) { · 185 unmodified lines | ||
| 186 | 186 | if (m_pWelsTrace != NULL) { |
| 187 | 187 | const int32_t iWelsTraceExistingFlag = m_pWelsTrace->WelsTraceModuleIsExist(); |
| 188 | 188 | if (iWelsTraceExistingFlag) { |
| 189 | − m_pWelsTrace->SetTraceLevel (WELS_LOG_DEFAULT); | |
| 189 | + m_pWelsTrace->SetTraceLevel (WELS_LOG_ERROR); | |
| 190 | 190 | WelsSetLogCallback (welsCodecTrace::CODEC_TRACE); |
| 191 | 191 | } |
| 192 | 192 | } |
| 193 | 193 | |
| 194 | 194 | // initialization |
| 195 | − WelsSetLogLevel (WELS_LOG_DEFAULT); // no output, WELS_LOG_QUIET | |
| 195 | + WelsSetLogLevel (WELS_LOG_ERROR); // no output, WELS_LOG_QUIET | |
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /* Interfaces override from ISVCEncoder */ |
| @@ -947,6 +947,13 @@ int CWelsH264SVCEncoder::SetOption (ENCODER_OPTION eOptionId, void* pOption) { · 748 unmodified lines | ||
| 947 | 947 | #endif |
| 948 | 948 | } |
| 949 | 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 | 957 | default: |
| 951 | 958 | return cmInitParaError; |
| 952 | 959 | } |