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

Method SetUp

test/encoder/EncUT_Sample.cpp:535–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

533class SadSatdAssemblyFuncTest : public testing::Test {
534 public:
535 virtual void SetUp() {
536 int32_t iCpuCores = 0;
537 m_uiCpuFeatureFlag = WelsCPUFeatureDetect (&iCpuCores);
538 pMemAlign = new CMemoryAlign (16);
539 m_iStrideA = m_iStrideB = PIXEL_STRIDE;
540 m_pPixSrcA = (uint8_t*)pMemAlign->WelsMalloc (m_iStrideA << 5, "Sad_m_pPixSrcA");
541 ASSERT_TRUE (NULL != m_pPixSrcA);
542 m_pPixSrcB = (uint8_t*)pMemAlign->WelsMalloc (m_iStrideB << 5, "Sad_m_pPixSrcB");
543 ASSERT_MEMORY_FAIL2X (m_pPixSrcA, m_pPixSrcB)
544 m_pSad = (int32_t*)pMemAlign->WelsMalloc (4 * sizeof (int32_t), "m_pSad");
545 ASSERT_MEMORY_FAIL3X (m_pPixSrcA, m_pPixSrcB, m_pSad)
546 }
547 virtual void TearDown() {
548 pMemAlign->WelsFree (m_pPixSrcA, "Sad_m_pPixSrcA");
549 pMemAlign->WelsFree (m_pPixSrcB, "Sad_m_pPixSrcB");

Callers

nothing calls this directly

Calls 2

WelsCPUFeatureDetectFunction · 0.85
WelsMallocMethod · 0.80

Tested by

no test coverage detected