Add func init on UT source code
This commit is contained in:
parent
2d265877a9
commit
82b875c388
@ -43,7 +43,6 @@
|
||||
|
||||
#include "mc.h"
|
||||
#include "cpu_core.h"
|
||||
#include "get_intra_predictor.h"
|
||||
|
||||
namespace WelsSVCEnc {
|
||||
int32_t WelsSampleSatd4x4_c (uint8_t* pSample1, int32_t iStride1, uint8_t* pSample2, int32_t iStride2) {
|
||||
@ -151,7 +150,7 @@ int32_t WelsSampleSatdIntra4x4Combined3_c (uint8_t* pDec, int32_t iDecStride, ui
|
||||
iBestMode = 2;
|
||||
iBestCost = iCurCost;
|
||||
}
|
||||
WelsInitFillingPredFuncs(WELS_CPU_SSE2);
|
||||
|
||||
WelsI4x4LumaPredH_c (uiLocalBuffer[1], pDec, iDecStride);
|
||||
iCurCost = WelsSampleSatd4x4_c (uiLocalBuffer[1], 4, pEnc, iEncStride) + iLambda1;
|
||||
if (iCurCost < iBestCost) {
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "cpu.h"
|
||||
#include "sample.h"
|
||||
#include "sad_common.h"
|
||||
#include "get_intra_predictor.h"
|
||||
|
||||
using namespace WelsSVCEnc;
|
||||
#ifdef X86_ASM
|
||||
@ -86,6 +87,7 @@ TEST(IntraSadSatdFuncTest, WelsSampleSatdThree4x4_sse2){
|
||||
uint8_t* pDec = (uint8_t *)cMemoryAlign.WelsMalloc(iLineSizeDec<<5,"pDec");
|
||||
uint8_t* pEnc = (uint8_t *)cMemoryAlign.WelsMalloc(iLineSizeEnc<<5,"pEnc");
|
||||
uint8_t* pDst = (uint8_t *)cMemoryAlign.WelsMalloc(512,"pDst");
|
||||
WelsInitFillingPredFuncs(WELS_CPU_SSE2);
|
||||
srand((uint32_t)time(NULL));
|
||||
for(int i=0;i<(iLineSizeDec<<5);i++)
|
||||
pDec[i]=rand()%256;
|
||||
|
Loading…
Reference in New Issue
Block a user