| 2433 | } |
| 2434 | |
| 2435 | int32_t InitRefPicList (PWelsDecoderContext pCtx, const uint8_t kuiNRi, int32_t iPoc) { |
| 2436 | int32_t iRet = ERR_NONE; |
| 2437 | if (pCtx->eSliceType == B_SLICE) { |
| 2438 | iRet = WelsInitBSliceRefList (pCtx, iPoc); |
| 2439 | CreateImplicitWeightTable (pCtx); |
| 2440 | } else |
| 2441 | iRet = WelsInitRefList (pCtx, iPoc); |
| 2442 | if ((pCtx->eSliceType != I_SLICE && pCtx->eSliceType != SI_SLICE)) { |
| 2443 | #if 1 |
| 2444 | if (pCtx->pSps->uiProfileIdc != 66 && pCtx->pPps->bEntropyCodingModeFlag) |
| 2445 | iRet = WelsReorderRefList2 (pCtx); |
| 2446 | else |
| 2447 | #endif |
| 2448 | iRet = WelsReorderRefList (pCtx); |
| 2449 | } |
| 2450 | |
| 2451 | return iRet; |
| 2452 | } |
| 2453 | |
| 2454 | void InitCurDqLayerData (PWelsDecoderContext pCtx, PDqLayer pCurDq) { |
| 2455 | if (NULL != pCtx && NULL != pCurDq) { |
no test coverage detected