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

Function FreeRefList

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

Source from the content-addressed store, hash-verified

984}
985
986void FreeRefList (SRefList*& pRefList, CMemoryAlign* pMa, const int iMaxNumRefFrame) {
987 if (NULL == pRefList) {
988 return;
989 }
990
991 int32_t iRef = 0;
992 do {
993 if (pRefList->pRef[iRef] != NULL) {
994 FreePicture (pMa, &pRefList->pRef[iRef]);
995 }
996 ++ iRef;
997 } while (iRef < 1 + iMaxNumRefFrame);
998
999 pMa->WelsFree (pRefList, "pRefList");
1000 pRefList = NULL;
1001}
1002
1003/*!
1004 * \brief initialize ppDqLayerList and slicepEncCtx_list due to count number of layers available

Callers 2

InitDqLayersFunction · 0.85
FreeMemorySvcFunction · 0.85

Calls 2

WelsFreeMethod · 0.80
FreePictureFunction · 0.70

Tested by

no test coverage detected