mirror of
https://github.com/nihui/opencv-mobile.git
synced 2025-09-26 20:41:56 +08:00
Android 16k pagesize (#178)
This commit is contained in:
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
@@ -256,6 +256,7 @@ jobs:
|
||||
-DCMAKE_TOOLCHAIN_FILE=$ANDROID_NDK_LATEST_HOME/build/cmake/android.toolchain.cmake \
|
||||
-DANDROID_USE_LEGACY_TOOLCHAIN_FILE=False \
|
||||
-DANDROID_PLATFORM=android-21 \
|
||||
-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON \
|
||||
-DANDROID_CPP_FEATURES="no-rtti no-exceptions" \
|
||||
-DCMAKE_INSTALL_PREFIX=install \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
|
@@ -784,11 +784,11 @@ void imshow(const String& winname, InputArray mat)
|
||||
std::vector<uchar> buf;
|
||||
bool result = cv::imencode(".bmp", mat, buf);
|
||||
if (result) {
|
||||
BitmapWindow::show(winname.c_str(), buf.data());
|
||||
BitmapWindow::show(winname.c_str(), buf.data());
|
||||
return;
|
||||
}
|
||||
return ;
|
||||
#elif __linux__
|
||||
#elif __linux__ && !__ANDROID__
|
||||
if (winname == "fb")
|
||||
{
|
||||
static display_fb dpy;
|
||||
|
Reference in New Issue
Block a user