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

Function GetCurLayerNalCount

codec/encoder/core/src/svc_encode_slice.cpp:1535–1547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1533}
1534
1535int32_t GetCurLayerNalCount (const SDqLayer* pCurDq, const int32_t kiCodedSliceNum) {
1536 int32_t iTotalNalCount = 0;
1537 int32_t iSliceIdx = 0;
1538 SWelsSliceBs* pSliceBs = NULL;
1539 for (; iSliceIdx < kiCodedSliceNum; iSliceIdx++) {
1540 pSliceBs = &pCurDq->ppSliceInLayer[iSliceIdx]->sSliceBs;
1541 if (pSliceBs != NULL && pSliceBs->uiBsPos > 0) {
1542 iTotalNalCount += pSliceBs->iNalIndex;
1543 }
1544 }
1545
1546 return iTotalNalCount;
1547}
1548
1549int32_t GetTotalCodedNalCount (SFrameBSInfo* pFbi) {
1550 int32_t iTotalCodedNalCount = 0;

Callers 1

SliceLayerInfoUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected