| 1449 | } |
| 1450 | |
| 1451 | static inline int32_t CheckAllSliceBuffer (SDqLayer* pCurLayer, const int32_t kiCodedSliceNum) { |
| 1452 | int32_t iSliceIdx = 0; |
| 1453 | for (; iSliceIdx < kiCodedSliceNum ; iSliceIdx ++) { |
| 1454 | if (NULL == pCurLayer->ppSliceInLayer[iSliceIdx]) { |
| 1455 | return ENC_RETURN_UNEXPECTED; |
| 1456 | } |
| 1457 | |
| 1458 | if (iSliceIdx != pCurLayer->ppSliceInLayer[iSliceIdx]->iSliceIdx) { |
| 1459 | return ENC_RETURN_UNEXPECTED; |
| 1460 | } |
| 1461 | } |
| 1462 | |
| 1463 | return ENC_RETURN_SUCCESS; |
| 1464 | } |
| 1465 | |
| 1466 | int32_t ReOrderSliceInLayer (sWelsEncCtx* pCtx, |
| 1467 | const SliceModeEnum kuiSliceMode, |
no outgoing calls
no test coverage detected