History

add API only for decode parser for HW decoding support

huili2 committed 12 years ago

Commit efdefdb1 parent e4b373a6 files · +40 −4Browse files

Showing the changes to test/api (2 of 6 files). Show all

Unified · Split

2 files
  1. test/api/c_interface_test.c +3 −2
  2. test/api/cpp_interface_test.cpp +7 −2
test/api/c_interface_test.c+3−2
@@ -27,8 +27,9 @@ void CheckDecoderInterface(ISVCDecoder* p, CheckFunc check) { · 26 unmodified lines
27 CHECK(3, p, DecodeFrame);27 CHECK(3, p, DecodeFrame);
28 CHECK(4, p, DecodeFrame2);28 CHECK(4, p, DecodeFrame2);
29 CHECK(5, p, DecodeFrameEx);29 CHECK(5, p, DecodeFrameEx);
30 CHECK(6, p, SetOption);30 CHECK(6, p, DecodeParser);
31 CHECK(7, p, GetOption);31 CHECK(7, p, SetOption);
32 CHECK(8, p, GetOption);
32}33}
33 34
34struct bool_test_struct {35struct bool_test_struct {
test/api/cpp_interface_test.cpp+7−2
@@ -88,13 +88,18 @@ struct SVCDecoderImpl : public ISVCDecoder { · 87 unmodified lines
88 EXPECT_TRUE (gThis == this);88 EXPECT_TRUE (gThis == this);
89 return static_cast<DECODING_STATE> (5);89 return static_cast<DECODING_STATE> (5);
90 }90 }
91 virtual DECODING_STATE EXTAPI DecodeParser (const unsigned char* pSrc,
92 const int iSrcLen, SParserBsInfo* pDstInfo) {
93 EXPECT_TRUE (gThis == this);
94 return static_cast<DECODING_STATE> (6);
95 }
91 virtual long EXTAPI SetOption (DECODER_OPTION eOptionId, void* pOption) {96 virtual long EXTAPI SetOption (DECODER_OPTION eOptionId, void* pOption) {
92 EXPECT_TRUE (gThis == this);97 EXPECT_TRUE (gThis == this);
93 return 6;98 return 7;
94 }99 }
95 virtual long EXTAPI GetOption (DECODER_OPTION eOptionId, void* pOption) {100 virtual long EXTAPI GetOption (DECODER_OPTION eOptionId, void* pOption) {
96 EXPECT_TRUE (gThis == this);101 EXPECT_TRUE (gThis == this);
97 return 7;102 return 8;
98 }103 }
99};104};
100 105

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