| 251 | |
| 252 | |
| 253 | void LoadBackFrameNum (sWelsEncCtx* pEncCtx, const int32_t kiDidx) { |
| 254 | SSpatialLayerInternal* pParamInternal = &pEncCtx->pSvcParam->sDependencyLayers[kiDidx]; |
| 255 | bool bNeedFrameNumIncreasing = false; |
| 256 | |
| 257 | if (NRI_PRI_LOWEST != pEncCtx->eLastNalPriority[kiDidx]) { |
| 258 | bNeedFrameNumIncreasing = true; |
| 259 | } |
| 260 | |
| 261 | if (bNeedFrameNumIncreasing) { |
| 262 | if (pParamInternal->iFrameNum != 0) { |
| 263 | pParamInternal->iFrameNum --; |
| 264 | } else { |
| 265 | pParamInternal->iFrameNum = (1 << pEncCtx->pSps->uiLog2MaxFrameNum) - 1; |
| 266 | } |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | void InitBitStream (sWelsEncCtx* pEncCtx) { |
| 271 | // for bitstream writing |
no outgoing calls
no test coverage detected