History

checking the scripits for unittest automatically on mobile

syureyi committed 12 years ago

Commit f78f3951 parent a22d9766 files · +144 −32Browse files

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

Unified · Split

test/api/DataGenerator.cpp+6−2
@@ -22,8 +22,12 @@ bool YUVPixelDataGenerator (uint8_t* pPointer, int32_t iWidth, int32_t iHeight, · 21 unmodified lines
22 }22 }
23 23
24 FileInputStream fileStream;24 FileInputStream fileStream;
25 if (!fileStream.Open ("res/CiscoVT2people_160x96_6fps.yuv")) {25 #if defined(ANDROID_NDK)
26 return false;26 if (!fileStream.Open ("/sdcard/res/CiscoVT2people_160x96_6fps.yuv")) {
27#else
28 if (!fileStream.Open ("res/CiscoVT2people_160x96_6fps.yuv")) {
29#endif
30return false;
27 }31 }
28 if (fileStream.read (sBuf.data(), kiFrameSize) == kiFrameSize) {32 if (fileStream.read (sBuf.data(), kiFrameSize) == kiFrameSize) {
29 int32_t iStartPosX = rand() % (SRC_FRAME_WIDTH - iWidth);33 int32_t iStartPosX = rand() % (SRC_FRAME_WIDTH - iWidth);

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