Showing the changes to codec/decoder/core/src/manage_dec_ref.cpp (1 of 14 files). Show all
Unified · Split
| @@ -123,7 +123,7 @@ int32_t WelsInitRefList (PWelsDecoderContext pCtx, int32_t iPoc) { · 122 unmodified lines | ||
| 123 | 123 | pRef->uiTemporalId = pRef->uiQualityId = 0; |
| 124 | 124 | AddShortTermToList (&pCtx->sRefPic, pRef); |
| 125 | 125 | } else { |
| 126 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_ERROR, "WelsInitRefList()::PrefetchPic for EC errors.\n"); | |
| 126 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_ERROR, "WelsInitRefList()::PrefetchPic for EC errors.\n"); | |
| 127 | 127 | pCtx->iErrorCode |= dsOutOfMemory; |
| 128 | 128 | return ERR_INFO_REF_COUNT_OVERFLOW; |
| 129 | 129 | } |
| @@ -187,7 +187,7 @@ int32_t WelsReorderRefList (PWelsDecoderContext pCtx) { · 57 unmodified lines | ||
| 187 | 187 | if (ppRefList[i]->iFrameNum == iPredFrameNum && !ppRefList[i]->bIsLongRef) { |
| 188 | 188 | if ((pNalHeaderExt->uiQualityId == ppRefList[i]->uiQualityId) |
| 189 | 189 | && (pSliceHeader->iSpsId != ppRefList[i]->iSpsId)) { //check; |
| 190 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "WelsReorderRefList()::::BASE LAYER::::iSpsId:%d, ref_sps_id:%d\n", | |
| 190 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "WelsReorderRefList()::::BASE LAYER::::iSpsId:%d, ref_sps_id:%d\n", | |
| 191 | 191 | pSliceHeader->iSpsId, ppRefList[i]->iSpsId); |
| 192 | 192 | pCtx->iErrorCode = dsNoParamSets; //cross-IDR reference frame selection, SHOULD request IDR.-- |
| 193 | 193 | return ERR_INFO_REFERENCE_PIC_LOST; |
| @@ -204,7 +204,7 @@ int32_t WelsReorderRefList (PWelsDecoderContext pCtx) { · 10 unmodified lines | ||
| 204 | 204 | pRefPicListReorderSyn->sReorderingSyn[LIST_0][iReorderingIndex].uiLongTermPicNum) { |
| 205 | 205 | if ((pNalHeaderExt->uiQualityId == ppRefList[i]->uiQualityId) |
| 206 | 206 | && (pSliceHeader->iSpsId != ppRefList[i]->iSpsId)) { //check; |
| 207 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "WelsReorderRefList()::::BASE LAYER::::iSpsId:%d, ref_sps_id:%d\n", | |
| 207 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "WelsReorderRefList()::::BASE LAYER::::iSpsId:%d, ref_sps_id:%d\n", | |
| 208 | 208 | pSliceHeader->iSpsId, ppRefList[i]->iSpsId); |
| 209 | 209 | pCtx->iErrorCode = dsNoParamSets; //cross-IDR reference frame selection, SHOULD request IDR.-- |
| 210 | 210 | return ERR_INFO_REFERENCE_PIC_LOST; |
| @@ -328,13 +328,13 @@ static int32_t MMCOProcess (PWelsDecoderContext pCtx, uint32_t uiMmcoType, · 117 unmodified lines | ||
| 328 | 328 | case MMCO_SHORT2UNUSED: |
| 329 | 329 | pPic = WelsDelShortFromListSetUnref (pRefPic, iShortFrameNum); |
| 330 | 330 | if (pPic == NULL) { |
| 331 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "MMCO_SHORT2UNUSED: delete a empty entry from short term list\n"); | |
| 331 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "MMCO_SHORT2UNUSED: delete a empty entry from short term list\n"); | |
| 332 | 332 | } |
| 333 | 333 | break; |
| 334 | 334 | case MMCO_LONG2UNUSED: |
| 335 | 335 | pPic = WelsDelLongFromListSetUnref (pRefPic, uiLongTermPicNum); |
| 336 | 336 | if (pPic == NULL) { |
| 337 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "MMCO_LONG2UNUSED: delete a empty entry from long term list\n"); | |
| 337 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "MMCO_LONG2UNUSED: delete a empty entry from long term list\n"); | |
| 338 | 338 | } |
| 339 | 339 | break; |
| 340 | 340 | case MMCO_SHORT2LONG: |
| @@ -343,14 +343,14 @@ static int32_t MMCOProcess (PWelsDecoderContext pCtx, uint32_t uiMmcoType, · 2 unmodified lines | ||
| 343 | 343 | } |
| 344 | 344 | pPic = WelsDelShortFromList (pRefPic, iShortFrameNum); |
| 345 | 345 | if (pPic == NULL) { |
| 346 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "MMCO_LONG2LONG: delete a empty entry from short term list\n"); | |
| 346 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "MMCO_LONG2LONG: delete a empty entry from short term list\n"); | |
| 347 | 347 | break; |
| 348 | 348 | } |
| 349 | 349 | WelsDelLongFromListSetUnref (pRefPic, iLongTermFrameIdx); |
| 350 | 350 | #ifdef LONG_TERM_REF |
| 351 | 351 | pCtx->bCurAuContainLtrMarkSeFlag = true; |
| 352 | 352 | pCtx->iFrameNumOfAuMarkedLtr = iShortFrameNum; |
| 353 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_INFO, "ex_mark_avc():::MMCO_SHORT2LONG:::LTR marking....iFrameNum: %d\n", | |
| 353 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "ex_mark_avc():::MMCO_SHORT2LONG:::LTR marking....iFrameNum: %d\n", | |
| 354 | 354 | pCtx->iFrameNumOfAuMarkedLtr); |
| 355 | 355 | #endif |
| 356 | 356 | |
| @@ -379,7 +379,8 @@ static int32_t MMCOProcess (PWelsDecoderContext pCtx, uint32_t uiMmcoType, · 22 unmodified lines | ||
| 379 | 379 | #ifdef LONG_TERM_REF |
| 380 | 380 | pCtx->bCurAuContainLtrMarkSeFlag = true; |
| 381 | 381 | pCtx->iFrameNumOfAuMarkedLtr = pCtx->iFrameNum; |
| 382 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_INFO, "ex_mark_avc():::MMCO_LONG:::LTR marking....iFrameNum: %d\n", pCtx->iFrameNum); | |
| 382 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_INFO, "ex_mark_avc():::MMCO_LONG:::LTR marking....iFrameNum: %d\n", | |
| 383 | + pCtx->iFrameNum); | |
| 383 | 384 | #endif |
| 384 | 385 | iRet = AddLongTermToList (pRefPic, pCtx->pDec, iLongTermFrameIdx); |
| 385 | 386 | break; |
| @@ -564,7 +565,7 @@ static int32_t RemainOneBufferInDpbForEC (PWelsDecoderContext pCtx) { · 178 unmodified lines | ||
| 564 | 565 | } |
| 565 | 566 | if (pRefPic->uiShortRefCount[0] + pRefPic->uiLongRefCount[0] >= |
| 566 | 567 | pCtx->pSps->iNumRefFrames) { //fail to remain one empty buffer in DPB |
| 567 | − WelsLog (&(pCtx->sLogCtx), WELS_LOG_WARNING, "RemainOneBufferInDpbForEC(): empty one DPB failed for EC!\n"); | |
| 568 | + WelsLog (& (pCtx->sLogCtx), WELS_LOG_WARNING, "RemainOneBufferInDpbForEC(): empty one DPB failed for EC!\n"); | |
| 568 | 569 | iRet = ERR_INFO_REF_COUNT_OVERFLOW; |
| 569 | 570 | } |
| 570 | 571 | |