History

Merge pull request #2599 from huili2/vui_parse_part

add part of VUI parse in sps, and add SAR option in GetOption()

ruil2 committed 9 years ago

Commit 6d9220c2 parents bc0fc2e 4ebaba811 files · +201 −10Browse files

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

Unified · Split

codec/decoder/plus/src/welsDecoderExt.cpp+15−2
@@ -345,9 +345,11 @@ long CWelsDecoder::SetOption (DECODER_OPTION eOptID, void* pOption) { · 344 unmodified lines
345 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,345 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,
346 "CWelsDecoder::SetOption():DECODER_OPTION_GET_STATISTICS: this option is get-only!");346 "CWelsDecoder::SetOption():DECODER_OPTION_GET_STATISTICS: this option is get-only!");
347 return cmInitParaError;347 return cmInitParaError;
348 } else if (eOptID == DECODER_OPTION_GET_SAR_INFO) {
349 WelsLog (&m_pWelsTrace->m_sLogCtx, WELS_LOG_WARNING,
350 "CWelsDecoder::SetOption():DECODER_OPTION_GET_SAR_INFO: this option is get-only!");
351 return cmInitParaError;
348 }352 }
349
350
351 return cmInitParaError;353 return cmInitParaError;
352}354}
353 355
@@ -412,6 +414,17 @@ long CWelsDecoder::GetOption (DECODER_OPTION eOptID, void* pOption) { · 58 unmodified lines
412 m_pDecContext->sDecoderStatistics.uiFreezingNonIDRNum);414 m_pDecContext->sDecoderStatistics.uiFreezingNonIDRNum);
413 }415 }
414 return cmResultSuccess;416 return cmResultSuccess;
417 } else if (DECODER_OPTION_GET_SAR_INFO == eOptID) { //get decoder SAR info in VUI
418 PVuiSarInfo pVuiSarInfo = (static_cast<PVuiSarInfo> (pOption));
419 memset (pVuiSarInfo, 0, sizeof (SVuiSarInfo));
420 if (!m_pDecContext->pSps) {
421 return cmInitExpected;
422 } else {
423 pVuiSarInfo->uiSarWidth = m_pDecContext->pSps->sVui.uiSarWidth;
424 pVuiSarInfo->uiSarHeight = m_pDecContext->pSps->sVui.uiSarHeight;
425 pVuiSarInfo->bOverscanAppropriateFlag = m_pDecContext->pSps->sVui.bOverscanAppropriateFlag;
426 return cmResultSuccess;
427 }
415 }428 }
416 429
417 return cmInitParaError;430 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