History

decoder statictis adding

mem mem decstatictis time change time change set decTime=0

zhuling13 committed 12 years ago

Commit 45ef8031 parent 8ed4e839 files · +210 −3Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+10−0
@@ -107,6 +107,14 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 106 unmodified lines
107107 pDstInfo->iBufferStatus = (int32_t) (bFrameCompleteFlag
108108 && pPic->bIsComplete); // When EC disable, ECed picture not output
109109
110+
111+ if ((pDstInfo->iBufferStatus == 1) && (pCurDq->sLayerInfo.sNalHeaderExt.bIdrFlag)) {
112+ if (pPic->bIsComplete)
113+ pCtx->sDecoderStatistics.uiIDRRecvNum++;
114+ else
115+ pCtx->sDecoderStatistics.uiEcIDRNum++;
116+ }
117+
110118 if (pDstInfo->iBufferStatus == 0) {
111119 if (!bFrameCompleteFlag)
112120 pCtx->iErrorCode |= dsBitstreamError;
@@ -974,6 +982,8 @@ int32_t UpdateAccessUnit (PWelsDecoderContext pCtx) { · 861 unmodified lines
974982 }
975983 if (uiActualIdx ==
976984 pCurAu->uiActualUnitsNum) { // no found IDR nal within incoming AU, need exit to avoid mosaic issue, 11/19/2009
985+
986+ pCtx->sDecoderStatistics.uiIDRLostNum++;
977987 WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
978988 "UpdateAccessUnit():::::Key frame lost.....CAN NOT find IDR from current AU.");
979989 pCtx->iErrorCode |= dsRefLost;

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