History

Add a decoder option for setting the trace level

Martin Storsjö committed 12 years ago

Commit 573dad71 parent 77c35942 files · +8 −1Browse files

Showing the changes to codec/decoder/plus/src/welsDecoderExt.cpp (1 of 2 files). Show all

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+7−1
@@ -237,7 +237,7 @@ void CWelsDecoder::InitDecoder (void) { · 236 unmodified lines
237237 long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) {
238238 int iVal = 0;
239239
240− if (m_pDecContext == NULL)
240+ if (m_pDecContext == NULL && eOptID != DECODER_OPTION_TRACE_LEVEL)
241241 return dsInitialOptExpected;
242242
243243 if (eOptID == DECODER_OPTION_DATAFORMAT) { // Set color space of decoding output frame
@@ -263,6 +263,12 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 19 unmodified lines
263263 iVal = * ((int*)pOption); //EC method
264264 m_pDecContext->iErrorConMethod = iVal;
265265 return cmResultSuccess;
266+ } else if (eOptID == DECODER_OPTION_TRACE_LEVEL) {
267+ if (m_pWelsTrace) {
268+ uint32_t level = * ((uint32_t*)pOption);
269+ m_pWelsTrace->SetTraceLevel (level);
270+ }
271+ return cmResultSuccess;
266272 }
267273
268274 return cmInitParaError;

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