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

Method SetUp

test/api/BaseDecoderTest.cpp:52–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 : decoder_ (NULL), decodeStatus_ (OpenFile) {}
51
52int32_t BaseDecoderTest::SetUp() {
53 long rv = WelsCreateDecoder (&decoder_);
54 EXPECT_EQ (0, rv);
55 EXPECT_TRUE (decoder_ != NULL);
56 if (decoder_ == NULL) {
57 return rv;
58 }
59
60 SDecodingParam decParam;
61 memset (&decParam, 0, sizeof (SDecodingParam));
62 decParam.uiTargetDqLayer = UCHAR_MAX;
63 decParam.eEcActiveIdc = ERROR_CON_SLICE_COPY;
64 decParam.sVideoProperty.eVideoBsType = VIDEO_BITSTREAM_DEFAULT;
65
66 rv = decoder_->Initialize (&decParam);
67 EXPECT_EQ (0, rv);
68 return (int32_t)rv;
69}
70
71void BaseDecoderTest::TearDown() {
72 if (decoder_ != NULL) {

Callers

nothing calls this directly

Calls 2

WelsCreateDecoderFunction · 0.85
InitializeMethod · 0.45

Tested by

no test coverage detected