History

modify dec API from void to explicit type, and some comments

huili2 committed 12 years ago

Commit 54822071 parent 032d1996 files · +19 −19Browse files

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

Unified · Split

test/api/BaseDecoderTest.cpp+4−4
@@ -71,7 +71,7 @@ void BaseDecoderTest::TearDown() { · 70 unmodified lines
7171
7272
7373 void BaseDecoderTest::DecodeFrame(const uint8_t* src, int sliceSize, Callback* cbk) {
74− void* data[3];
74+ uint8_t* data[3];
7575 SBufferInfo bufInfo;
7676 memset(data, 0, sizeof(data));
7777 memset(&bufInfo, 0, sizeof(SBufferInfo));
@@ -82,19 +82,19 @@ void BaseDecoderTest::DecodeFrame(const uint8_t* src, int sliceSize, Callback* c · 4 unmodified lines
8282 if (bufInfo.iBufferStatus == 1 && cbk != NULL) {
8383 const Frame frame = {
8484 { // y plane
85− static_cast<uint8_t*>(data[0]),
85+ data[0],
8686 bufInfo.UsrData.sSystemBuffer.iWidth,
8787 bufInfo.UsrData.sSystemBuffer.iHeight,
8888 bufInfo.UsrData.sSystemBuffer.iStride[0]
8989 },
9090 { // u plane
91− static_cast<uint8_t*>(data[1]),
91+ data[1],
9292 bufInfo.UsrData.sSystemBuffer.iWidth / 2,
9393 bufInfo.UsrData.sSystemBuffer.iHeight / 2,
9494 bufInfo.UsrData.sSystemBuffer.iStride[1]
9595 },
9696 { // v plane
97− static_cast<uint8_t*>(data[2]),
97+ data[2],
9898 bufInfo.UsrData.sSystemBuffer.iWidth / 2,
9999 bufInfo.UsrData.sSystemBuffer.iHeight / 2,
100100 bufInfo.UsrData.sSystemBuffer.iStride[1]

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