| 3367 | } |
| 3368 | |
| 3369 | void ClearFrameBsInfo (sWelsEncCtx* pCtx, SFrameBSInfo* pFbi) { |
| 3370 | pFbi->sLayerInfo[0].pBsBuf = pCtx->pFrameBs; |
| 3371 | pFbi->sLayerInfo[0].pNalLengthInByte = pCtx->pOut->pNalLen; |
| 3372 | |
| 3373 | for (int i = 0; i < pFbi->iLayerNum; i++) { |
| 3374 | pFbi->sLayerInfo[i].iNalCount = 0; |
| 3375 | pFbi->sLayerInfo[i].eFrameType = videoFrameTypeSkip; |
| 3376 | } |
| 3377 | pFbi->iLayerNum = 0; |
| 3378 | pFbi->iFrameSizeInBytes = 0; |
| 3379 | } |
| 3380 | EVideoFrameType PrepareEncodeFrame (sWelsEncCtx* pCtx, SLayerBSInfo*& pLayerBsInfo, int32_t iSpatialNum, |
| 3381 | int8_t& iCurDid, int32_t& iCurTid, |
| 3382 | int32_t& iLayerNum, int32_t& iFrameSize, long long uiTimeStamp) { |
no outgoing calls
no test coverage detected