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

Function TEST_F

test/api/decoder_test.cpp:20–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18};
19
20TEST_F (DecoderCapabilityTest, JustInit) {
21 SDecoderCapability sDecCap;
22 int iRet = WelsGetDecoderCapability (&sDecCap);
23 ASSERT_TRUE (iRet == 0);
24 EXPECT_EQ (sDecCap.iProfileIdc, 66);
25 EXPECT_EQ (sDecCap.iProfileIop, 0xE0);
26 EXPECT_EQ (sDecCap.iLevelIdc, 32);
27 EXPECT_EQ (sDecCap.iMaxMbps, 216000);
28 EXPECT_EQ (sDecCap.iMaxFs, 5120);
29 EXPECT_EQ (sDecCap.iMaxCpb, 20000);
30 EXPECT_EQ (sDecCap.iMaxDpb, 20480);
31 EXPECT_EQ (sDecCap.iMaxBr, 20000);
32 EXPECT_EQ (sDecCap.bRedPicCap, false);
33}
34
35
36class DecoderInitTest : public ::testing::Test, public BaseDecoderTest {

Callers

nothing calls this directly

Calls 1

WelsGetDecoderCapabilityFunction · 0.85

Tested by

no test coverage detected