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
2727 CHECK(3, p, DecodeFrame);
2828 CHECK(4, p, DecodeFrame2);
2929 CHECK(5, p, DecodeFrameEx);
30− CHECK(6, p, SetOption);
31− CHECK(7, p, GetOption);
30+ CHECK(6, p, DecodeParser);
31+ CHECK(7, p, SetOption);
32+ CHECK(8, p, GetOption);
3233 }
3334
3435 struct bool_test_struct {
test/api/cpp_interface_test.cpp+7−2
@@ -88,13 +88,18 @@ struct SVCDecoderImpl : public ISVCDecoder { · 87 unmodified lines
8888 EXPECT_TRUE (gThis == this);
8989 return static_cast<DECODING_STATE> (5);
9090 }
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+ }
9196 virtual long EXTAPI SetOption (DECODER_OPTION eOptionId, void* pOption) {
9297 EXPECT_TRUE (gThis == this);
93− return 6;
98+ return 7;
9499 }
95100 virtual long EXTAPI GetOption (DECODER_OPTION eOptionId, void* pOption) {
96101 EXPECT_TRUE (gThis == this);
97− return 7;
102+ return 8;
98103 }
99104 };
100105

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