Skip to content

Commit

Permalink
Update NDK build targets (Android-16)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Roth committed Aug 8, 2019
1 parent 69cfbb3 commit 141573b
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mjpeg-view/src/main/jni/Application.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# The ARMv7 is significanly faster due to the use of the hardware FPU
APP_ABI := armeabi armeabi-v7a mips x86
APP_PLATFORM := android-8
APP_ABI := armeabi-v7a x86 arm64-v8a
APP_PLATFORM := android-16
4 changes: 2 additions & 2 deletions mjpeg-view/src/main/jni/ImageProc/ImageProc.c
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ int Java_com_github_niqdev_mjpeg_MjpegInputStreamNative_pixeltobmp( JNIEnv* env,
int height = IMG_HEIGHT;


if(bmp==NULL) return;
if(bmp==NULL) return -1;
if ((ret = AndroidBitmap_getInfo(env, bmp, &info)) < 0) {
LOGE("AndroidBitmap_getInfo() failed ! error=%d", ret);
(*env)->ReleaseByteArrayElements(env, jp, p, 0);
Expand Down Expand Up @@ -305,7 +305,7 @@ int Java_com_github_niqdev_mjpeg_MjpegInputStreamNative_pixeltobmp( JNIEnv* env,
AndroidBitmap_unlockPixels(env, bmp);

(*env)->ReleaseByteArrayElements(env, jp, p, 0);

return 0;
}

Expand Down
Binary file not shown.
Binary file modified mjpeg-view/src/main/jniLibs/armeabi-v7a/libImageProc.so
Binary file not shown.
Binary file removed mjpeg-view/src/main/jniLibs/armeabi/libImageProc.so
Binary file not shown.
Binary file removed mjpeg-view/src/main/jniLibs/mips/libImageProc.so
Binary file not shown.
Binary file modified mjpeg-view/src/main/jniLibs/x86/libImageProc.so
Binary file not shown.

1 comment on commit 141573b

@mViolette
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this support x86_64?

Please sign in to comment.