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

Function TEST

test/encoder/EncUT_GetIntraPredictor.cpp:10–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8using namespace WelsEnc;
9
10TEST (GetIntraPredictorTest, TestGetI4x4LumaPredV) {
11 uint8_t* pPred = new uint8_t[64];
12 uint8_t* pRef = new uint8_t[64];
13 for (int i = 0; i < 64; i++)
14 pRef[i] = rand() % 256;
15
16 const int32_t kkiStride = 0;
17 WelsI4x4LumaPredV_c (pPred, pRef, kkiStride);
18
19 for (int i = 0; i < 4; i++)
20 EXPECT_EQ (LD32 (&pPred[4 * i]), LD32 (&pRef[-kkiStride]));
21
22 delete []pRef;
23 delete []pPred;
24}
25
26TEST (GetIntraPredictorTest, TestGetI4x4LumaPredH) {
27 const int32_t kiStride = rand() % 256 + 16;

Callers 1

Calls 2

WelsI4x4LumaPredV_cFunction · 0.85
WelsI4x4LumaPredH_cFunction · 0.85

Tested by

no test coverage detected