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

Function TEST

test/encoder/EncUT_EncoderMb.cpp:181–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

179}
180
181TEST (EncoderMbTest, TestQuantTable) {
182 CMemoryAlign cMemoryAlign (0);
183
184 int16_t iWidth = 16;
185 int16_t iHeight = 16;
186
187 uint8_t* pSrc = (uint8_t*)cMemoryAlign.WelsMalloc (iWidth * iHeight, "quant_src");
188 uint8_t* pPred = (uint8_t*)cMemoryAlign.WelsMalloc (iWidth * iHeight, "quant_pred");
189 int16_t* pDct = (int16_t*)cMemoryAlign.WelsMalloc (64 * sizeof (int16_t), "Dct Buffer");
190 int16_t* pDctCompare = (int16_t*)cMemoryAlign.WelsMalloc (64 * sizeof (int16_t), "DctCompare Buffer");
191
192 for (int32_t iQP = 0; iQP < 51; iQP++) {
193 TestQuant (iQP, pSrc, pPred, pDct, pDctCompare, iWidth, iHeight);
194 }
195
196 cMemoryAlign.WelsFree (pSrc, "quant_src");
197 cMemoryAlign.WelsFree (pPred, "quant_pred");
198 cMemoryAlign.WelsFree (pDct, "Dct Buffer");
199 cMemoryAlign.WelsFree (pDctCompare, "DctCompare Buffer");
200}

Callers

nothing calls this directly

Calls 3

TestQuantFunction · 0.85
WelsMallocMethod · 0.80
WelsFreeMethod · 0.80

Tested by

no test coverage detected