| 57 | extern PPicture AllocPicture (PWelsDecoderContext pCtx, const int32_t kiPicWidth, const int32_t kiPicHeight); |
| 58 | |
| 59 | static bool CheckRefPics (const PWelsDecoderContext& pCtx) { |
| 60 | int32_t listCount = 1; |
| 61 | if (pCtx->eSliceType == B_SLICE) { |
| 62 | ++listCount; |
| 63 | } |
| 64 | for (int32_t list = LIST_0; list < listCount; ++list) { |
| 65 | int32_t shortRefCount = pCtx->sRefPic.uiShortRefCount[list]; |
| 66 | for (int32_t refIdx = 0; refIdx < shortRefCount; ++refIdx) { |
| 67 | if (!pCtx->sRefPic.pShortRefList[list][refIdx]) { |
| 68 | return false; |
| 69 | } |
| 70 | } |
| 71 | int32_t longRefCount = pCtx->sRefPic.uiLongRefCount[list]; |
| 72 | for (int32_t refIdx = 0; refIdx < longRefCount; ++refIdx) { |
| 73 | if (!pCtx->sRefPic.pLongRefList[list][refIdx]) { |
| 74 | return false; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | return true; |
| 79 | } |
| 80 | |
| 81 | int32_t WelsTargetSliceConstruction (PWelsDecoderContext pCtx) { |
| 82 | PDqLayer pCurDqLayer = pCtx->pCurDqLayer; |
no outgoing calls
no test coverage detected