History

remove macro NO_WAITING_AU for always on

huili2 committed 12 years ago

Commit 0adb3e11 parent 153fa103 files · +2 −16Browse files

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

Unified · Split

codec/decoder/core/src/decoder_core.cpp+2−13
@@ -62,9 +62,8 @@ static inline int32_t DecodeFrameConstruction (PWelsDecoderContext pCtx, uint8_t · 61 unmodified lines
6262 pCtx->iTotalNumMbRec, kiTotalNumMbInCurLayer, pCurDq->iMbWidth, pCurDq->iMbHeight);
6363 bFrameCompleteFlag = false; //return later after output buffer is done
6464 }
65−#ifdef NO_WAITING_AU
65+
6666 pCtx->iTotalNumMbRec = 0;
67−#endif
6867
6968 if (pCtx->bNewSeqBegin) {
7069 memcpy (& (pCtx->sFrameCrop), & (pCurDq->sLayerInfo.sSliceInLayer.sSliceHeaderExt.sSliceHeader.pSps->sFrameCrop),
@@ -1749,17 +1748,13 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 1678 unmodified lines
17491748 }
17501749 }
17511750
1752−#ifdef NO_WAITING_AU
17531751 //For fixing the nal lossing issue
17541752 if ((pCtx->iTotalNumMbRec != 0) &&
17551753 (CheckAccessUnitBoundaryExt (&pCtx->sLastNalHdrExt, &pNalCur->sNalHeaderExt, &pCtx->sLastSliceHeader,
17561754 &pNalCur->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader))) {
17571755 pCtx->iTotalNumMbRec = 0;
17581756 }
1759−#else
1760− //initialize at the starting of AU.
1761− pCtx->iTotalNumMbRec = 0;
1762−#endif
1757+
17631758 if (pCtx->iTotalNumMbRec == 0) { //Picture start to decode
17641759 for (int32_t i = 0; i < LAYER_NUM_EXCHANGEABLE; ++ i)
17651760 memset (pCtx->sMb.pSliceIdc[i], 0xff, (pCtx->sMb.iMbWidth * pCtx->sMb.iMbHeight * sizeof (int32_t)));
@@ -1908,16 +1903,10 @@ int32_t DecodeCurrentAccessUnit (PWelsDecoderContext pCtx, uint8_t** ppDst, int3 · 142 unmodified lines
19081903
19091904 if (dq_cur->uiLayerDqId == kuiTargetLayerDqId) {
19101905 if (DecodeFrameConstruction (pCtx, ppDst, pDstLen, pWidth, pHeight, pDstInfo)) {
1911−#ifdef NO_WAITING_AU
19121906 memcpy (&pCtx->sLastNalHdrExt, &pCurAu->pNalUnitsList[iIdx - 1]->sNalHeaderExt, sizeof (SNalUnitHeaderExt));
19131907 memcpy (&pCtx->sLastSliceHeader, &pCurAu->pNalUnitsList[iIdx - 1]->sNalData.sVclNal.sSliceHeaderExt.sSliceHeader,
19141908 sizeof (SSliceHeader));
19151909 return ERR_NONE;
1916−#else
1917− pCtx->iErrorCode |= dsBitstreamError;
1918− return -1;
1919−#endif
1920−
19211910 }
19221911
19231912 pCtx->pPreviousDecodedPictureInDpb = pCtx->pDec; //store latest decoded picture for EC

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