History

modify EC API name and remove useless flag

huili2 committed 12 years ago

Commit 933c4771 parent 470246c13 files · +52 −51Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+8−8
@@ -103,7 +103,7 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 102 unmodified lines
103103 ppDst[2] = ppDst[2] + pCtx->sFrameCrop.iTopOffset * pPic->iLinesize[1] + pCtx->sFrameCrop.iLeftOffset;
104104 pDstInfo->iBufferStatus = 1;
105105
106− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) //no buffer output if EC is disabled and frame incomplete
106+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) //no buffer output if EC is disabled and frame incomplete
107107 pDstInfo->iBufferStatus = (int32_t) bFrameCompleteFlag;
108108
109109 if (!bFrameCompleteFlag) {
@@ -129,7 +129,7 @@ inline void HandleReferenceLostL0 (PWelsDecoderContext pCtx, PNalUnit pCurNal · 19 unmodified lines
129129 if (0 == pCurNal->sNalHeaderExt.uiTemporalId) {
130130 pCtx->bReferenceLostAtT0Flag = true;
131131 }
132− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
132+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
133133 #ifndef LONG_TERM_REF
134134 if (pCtx->bReferenceLostAtT0Flag) {
135135 ResetParameterSetsState (pCtx);
@@ -143,7 +143,7 @@ inline void HandleReferenceLost (PWelsDecoderContext pCtx, PNalUnit pCurNal) · 7 unmodified lines
143143 if ((0 == pCurNal->sNalHeaderExt.uiTemporalId) || (1 == pCurNal->sNalHeaderExt.uiTemporalId)) {
144144 pCtx->bReferenceLostAtT0Flag = true;
145145 }
146− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
146+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
147147 #ifndef LONG_TERM_REF
148148 if (pCtx->bReferenceLostAtT0Flag) {
149149 ResetParameterSetsState (pCtx);
@@ -959,7 +959,7 @@ int32_t UpdateAccessUnit (PWelsDecoderContext pCtx) { · 809 unmodified lines
959959 WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
960960 "UpdateAccessUnit():::::Key frame lost.....CAN NOT find IDR from current AU.\n");
961961 pCtx->iErrorCode |= dsRefLost;
962− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
962+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
963963 #ifdef LONG_TERM_REF
964964 pCtx->iErrorCode |= dsNoParamSets;
965965 return dsNoParamSets;
@@ -1887,7 +1887,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 921 unmodified lines
18871887 pSh->iFrameNum);
18881888
18891889 pCtx->iErrorCode |= dsRefLost;
1890− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
1890+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
18911891 #ifdef LONG_TERM_REF
18921892 pCtx->bParamSetsLostFlag = true;
18931893 #else
@@ -1906,7 +1906,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 12 unmodified lines
19061906 WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING,
19071907 "reference picture introduced by this frame is lost during transmission! uiTId: %d\n",
19081908 pNalCur->sNalHeaderExt.uiTemporalId);
1909− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
1909+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
19101910 return iRet;
19111911 }
19121912 }
@@ -1920,7 +1920,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 7 unmodified lines
19201920 "DecodeCurrentAccessUnit() failed (%d) in frame: %d uiDId: %d uiQId: %d\n",
19211921 iRet, pSh->iFrameNum, iCurrIdD, iCurrIdQ);
19221922 HandleReferenceLostL0 (pCtx, pNalCur);
1923− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
1923+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
19241924 return iRet;
19251925 }
19261926 }
@@ -1976,7 +1976,7 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, SBuf · 49 unmodified lines
19761976 pCtx->pPreviousDecodedPictureInDpb = pCtx->pDec; //store latest decoded picture for EC
19771977 iRet = WelsMarkAsRef (pCtx);
19781978 if (iRet != ERR_NONE) {
1979− if (pCtx->iErrorConMethod == ERROR_CON_DISABLE) {
1979+ if (pCtx->eErrorConMethod == ERROR_CON_DISABLE) {
19801980 pCtx->pDec = NULL;
19811981 return iRet;
19821982 }

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