History

add option to set decoder statistics log interval add variables into decoder statistics and add statistics log

sijchen@cisco.com committed 9 years ago

Commit fb48e981 parent 47aedcf6 files · +83 −1Browse files

Showing the changes to codec/decoder/core/src/decoder.cpp (1 of 6 files). Show all

Unified · Split

codec/decoder/core/src/decoder.cpp+3−0
@@ -312,6 +312,7 @@ void WelsDecoderDefaults (PWelsDecoderContext pCtx, SLogContext* pLogCtx) { · 311 unmodified lines
312 pCtx->bAvcBasedFlag = true;312 pCtx->bAvcBasedFlag = true;
313 pCtx->pPreviousDecodedPictureInDpb = NULL;313 pCtx->pPreviousDecodedPictureInDpb = NULL;
314 pCtx->sDecoderStatistics.iAvgLumaQp = -1;314 pCtx->sDecoderStatistics.iAvgLumaQp = -1;
315 pCtx->sDecoderStatistics.iStatisticsLogInterval = 1000;
315 pCtx->bUseScalingList = false;316 pCtx->bUseScalingList = false;
316 pCtx->iSpsErrorIgnored = 0;317 pCtx->iSpsErrorIgnored = 0;
317 pCtx->iSubSpsErrorIgnored = 0;318 pCtx->iSubSpsErrorIgnored = 0;
@@ -1020,10 +1021,12 @@ void ResetDecStatNums (SDecoderStatistics* pDecStat) { · 702 unmodified lines
1020 uint32_t uiWidth = pDecStat->uiWidth;1021 uint32_t uiWidth = pDecStat->uiWidth;
1021 uint32_t uiHeight = pDecStat->uiHeight;1022 uint32_t uiHeight = pDecStat->uiHeight;
1022 int32_t iAvgLumaQp = pDecStat->iAvgLumaQp;1023 int32_t iAvgLumaQp = pDecStat->iAvgLumaQp;
1024 uint32_t iLogInterval = pDecStat->iStatisticsLogInterval;
1023 memset (pDecStat, 0, sizeof (SDecoderStatistics));1025 memset (pDecStat, 0, sizeof (SDecoderStatistics));
1024 pDecStat->uiWidth = uiWidth;1026 pDecStat->uiWidth = uiWidth;
1025 pDecStat->uiHeight = uiHeight;1027 pDecStat->uiHeight = uiHeight;
1026 pDecStat->iAvgLumaQp = iAvgLumaQp;1028 pDecStat->iAvgLumaQp = iAvgLumaQp;
1029 pDecStat->iStatisticsLogInterval = iLogInterval;
1027}1030}
1028 1031
1029//update information when freezing occurs, including IDR/non-IDR number1032//update information when freezing occurs, including IDR/non-IDR number

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