| 1570 | } |
| 1571 | |
| 1572 | void 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 | |
| 1581 | long long GetTimestampForRc (const long long uiTimeStamp, const long long uiLastTimeStamp, const float fFrameRate) { |
| 1582 | if ((uiLastTimeStamp >= uiTimeStamp) || ((uiTimeStamp == 0) && (uiLastTimeStamp != -1))) { |
no test coverage detected