MCPcopy Create free account
hub / github.com/cisco/openh264 / ClearFrameBsInfo

Function ClearFrameBsInfo

codec/encoder/core/src/encoder_ext.cpp:3369–3379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3367}
3368
3369void 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}
3380EVideoFrameType 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) {

Callers 1

WelsEncoderEncodeExtFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected