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/error_concealment.cpp (1 of 9 files). Show all

Unified · Split

codec/decoder/core/src/error_concealment.cpp+6−1
@@ -98,9 +98,10 @@ void DoErrorConSliceCopy (PWelsDecoderContext pCtx) { · 97 unmodified lines
9898 PPicture pDstPic = pCtx->pDec;
9999 PPicture pSrcPic = pCtx->pPreviousDecodedPictureInDpb;
100100
101+ int32_t iMbNum = pCtx->pSps->iMbWidth * pCtx->pSps->iMbHeight;
101102 //uint8_t *pDstData[3], *pSrcData[3];
102103 bool* pMbCorrectlyDecodedFlag = pCtx->pCurDqLayer->pMbCorrectlyDecodedFlag;
103−
104+ int32_t iMbEcedNum = 0;
104105 //Do slice copy late
105106 int32_t iMbXyIndex;
106107 uint8_t* pSrcData, *pDstData;
@@ -110,6 +111,7 @@ void DoErrorConSliceCopy (PWelsDecoderContext pCtx) { · 3 unmodified lines
110111 for (int32_t iMbX = 0; iMbX < iMbWidth; ++iMbX) {
111112 iMbXyIndex = iMbY * iMbWidth + iMbX;
112113 if (!pMbCorrectlyDecodedFlag[iMbXyIndex]) {
114+ iMbEcedNum++;
113115 if (pSrcPic != NULL) {
114116 iSrcStride = pSrcPic->iLinesize[0];
115117 //Y component
@@ -147,6 +149,9 @@ void DoErrorConSliceCopy (PWelsDecoderContext pCtx) { · 31 unmodified lines
147149 } //!pMbCorrectlyDecodedFlag[iMbXyIndex]
148150 } //iMbX
149151 } //iMbY
152+
153+ pCtx->sDecoderStatistics.uiAvgEcRatio = (pCtx->sDecoderStatistics.uiAvgEcRatio * pCtx->sDecoderStatistics.uiEcFrameNum)
154+ + ((iMbEcedNum * 100) / iMbNum) ;
150155 }
151156
152157

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