shithub: openh264

Download patch

ref: c1cd9285a47190a083ed2bea15a2d4fad24a11a7
parent: a34fd091a24c1caf41189d3179a05c15df16b6fc
author: Huade Shi (huashi) <huashi@cisco.com>
date: Fri Apr 28 06:57:50 EDT 2017

rename function name in new slice buffer design ut

--- a/test/encoder/EncUT_SliceBufferReallocate.cpp
+++ b/test/encoder/EncUT_SliceBufferReallocate.cpp
@@ -143,7 +143,7 @@
   }
 }
 
-void ParamSetForReallocateTest (sWelsEncCtx* pCtx, int32_t iLayerIdx,
+void SetParamForReallocateTest (sWelsEncCtx* pCtx, int32_t iLayerIdx,
                                 int32_t iThreadIndex, int32_t iPartitionNum) {
   SSpatialLayerConfig* pLayerCfg = &pCtx->pSvcParam->sSpatialLayers[iLayerIdx];
   int32_t iPartitionID = rand() % iPartitionNum;
@@ -457,7 +457,7 @@
   int32_t iPartitionNum = rand() % pCtx->iActiveThreadsNum + 1; //include cases which part num less than thread num
   int32_t iSlcBufferNum = pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iMaxSliceNum;
 
-  ParamSetForReallocateTest (pCtx, iLayerIdx, iThreadIndex, iPartitionNum);
+  SetParamForReallocateTest (pCtx, iLayerIdx, iThreadIndex, iPartitionNum);
   iRet = ReallocateSliceInThread (pCtx, pCtx->pCurDqLayer, iLayerIdx, iThreadIndex);
   EXPECT_TRUE (cmResultSuccess == iRet);
   EXPECT_TRUE (NULL != pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].pSliceBuffer);
@@ -486,7 +486,7 @@
   int32_t iPartitionNum = pCtx->iActiveThreadsNum;
   int32_t iSlcBufferNum = 0;
 
-  ParamSetForReallocateTest (pCtx, iLayerIdx, iThreadIndex, iPartitionNum);
+  SetParamForReallocateTest (pCtx, iLayerIdx, iThreadIndex, iPartitionNum);
 
   for (int32_t iPartIdx = 0; iPartIdx < iPartitionNum; iPartIdx++) {
     iSlcBufferNum = pCtx->pCurDqLayer->sSliceBufferInfo[iThreadIndex].iMaxSliceNum;