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
312312 pCtx->bAvcBasedFlag = true;
313313 pCtx->pPreviousDecodedPictureInDpb = NULL;
314314 pCtx->sDecoderStatistics.iAvgLumaQp = -1;
315+ pCtx->sDecoderStatistics.iStatisticsLogInterval = 1000;
315316 pCtx->bUseScalingList = false;
316317 pCtx->iSpsErrorIgnored = 0;
317318 pCtx->iSubSpsErrorIgnored = 0;
@@ -1020,10 +1021,12 @@ void ResetDecStatNums (SDecoderStatistics* pDecStat) { · 702 unmodified lines
10201021 uint32_t uiWidth = pDecStat->uiWidth;
10211022 uint32_t uiHeight = pDecStat->uiHeight;
10221023 int32_t iAvgLumaQp = pDecStat->iAvgLumaQp;
1024+ uint32_t iLogInterval = pDecStat->iStatisticsLogInterval;
10231025 memset (pDecStat, 0, sizeof (SDecoderStatistics));
10241026 pDecStat->uiWidth = uiWidth;
10251027 pDecStat->uiHeight = uiHeight;
10261028 pDecStat->iAvgLumaQp = iAvgLumaQp;
1029+ pDecStat->iStatisticsLogInterval = iLogInterval;
10271030 }
10281031
10291032 //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