shithub: openh264

Download patch

ref: f6c37b009664288d066e8c9efd4adf10e4b7a6d0
parent: a66210319d03f2c2e0dd584a70aed24b420af8a2
parent: c1cd9285a47190a083ed2bea15a2d4fad24a11a7
author: ruil2 <ruil2@cisco.com>
date: Wed May 3 05:24:43 EDT 2017

Merge pull request #2736 from shihuade/NewDesgin_V1.1

rename ut function for new slice buffer design

--- 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;