History

add decoder capability info

huili2 committed 12 years ago

Commit 0b23d0f1 parent 0951c8f5 files · +54 −1Browse files

Showing the changes to test/api/decoder_test.cpp (1 of 5 files). Show all

Unified · Split

test/api/decoder_test.cpp+21−0
@@ -11,6 +11,27 @@ static void UpdateHashFromPlane (SHA1Context* ctx, const uint8_t* plane, · 10 unmodified lines
11 }11 }
12}12}
13 13
14class DecoderCapabilityTest : public ::testing::Test {
15 public:
16 virtual void SetUp() {}
17 virtual void TearDown() {}
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, 0);
33}
34
14 35
15class DecoderInitTest : public ::testing::Test, public BaseDecoderTest {36class DecoderInitTest : public ::testing::Test, public BaseDecoderTest {
16 public:37 public:

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t