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

Method SetUp

test/encoder/EncUT_EncoderExt.cpp:28–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27 public:
28 virtual void SetUp() {
29 int rv = WelsCreateSVCEncoder (&pPtrEnc);
30 ASSERT_EQ (0, rv);
31 ASSERT_TRUE (pPtrEnc != NULL);
32
33 unsigned int uiTraceLevel = WELS_LOG_ERROR;
34 pPtrEnc->SetOption (ENCODER_OPTION_TRACE_LEVEL, &uiTraceLevel);
35
36 pParamExt = new SEncParamExt();
37 ASSERT_TRUE (pParamExt != NULL);
38
39 pSrcPic = new SSourcePicture;
40 ASSERT_TRUE (pSrcPic != NULL);
41
42 pOption = new SEncParamExt();
43 ASSERT_TRUE (pOption != NULL);
44
45 pYUV = NULL;
46 m_iWidth = MAX_WIDTH;
47 m_iHeight = MAX_HEIGHT;
48 m_iPicResSize = m_iWidth * m_iHeight * 3 >> 1;
49 pYUV = new unsigned char [m_iPicResSize];
50 ASSERT_TRUE (pYUV != NULL);
51 }
52
53 virtual void TearDown() {
54 delete pParamExt;

Callers

nothing calls this directly

Calls 2

WelsCreateSVCEncoderFunction · 0.85
SetOptionMethod · 0.45

Tested by

no test coverage detected