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

Function LoadBackFrameNum

codec/encoder/core/src/encoder.cpp:253–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

251
252
253void 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
270void InitBitStream (sWelsEncCtx* pEncCtx) {
271 // for bitstream writing

Callers 1

StackBackEncoderStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected