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

Function WelsRcFreeMemory

codec/encoder/core/src/ratectl.cpp:1572–1579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1570}
1571
1572void WelsRcFreeMemory (sWelsEncCtx* pEncCtx) {
1573 SWelsSvcRc* pWelsSvcRc = NULL;
1574 int32_t i = 0;
1575 for (i = 0; i < pEncCtx->pSvcParam->iSpatialLayerNum; i++) {
1576 pWelsSvcRc = &pEncCtx->pWelsSvcRc[i];
1577 RcFreeLayerMemory (pWelsSvcRc, pEncCtx->pMemAlign);
1578 }
1579}
1580
1581long long GetTimestampForRc (const long long uiTimeStamp, const long long uiLastTimeStamp, const float fFrameRate) {
1582 if ((uiLastTimeStamp >= uiTimeStamp) || ((uiTimeStamp == 0) && (uiLastTimeStamp != -1))) {

Callers 1

FreeMemorySvcFunction · 0.85

Calls 1

RcFreeLayerMemoryFunction · 0.85

Tested by

no test coverage detected