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
2222 }
2323
2424 FileInputStream fileStream;
25− if (!fileStream.Open ("res/CiscoVT2people_160x96_6fps.yuv")) {
26− return false;
25+ #if defined(ANDROID_NDK)
26+ if (!fileStream.Open ("/sdcard/res/CiscoVT2people_160x96_6fps.yuv")) {
27+#else
28+ if (!fileStream.Open ("res/CiscoVT2people_160x96_6fps.yuv")) {
29+#endif
30+return false;
2731 }
2832 if (fileStream.read (sBuf.data(), kiFrameSize) == kiFrameSize) {
2933 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