summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorJay Wang <jaywang@codeaurora.org>2016-07-12 14:06:12 -0700
committerJay Wang <jaywang@codeaurora.org>2016-07-20 18:49:13 -0700
commit4d0a8c06636c34fcee392031c57351c1512f4b91 (patch)
tree08a3ba1f07a872f569efc63e4decc135d73b75eb /src/com
parentb7f0f7f067f5979e7e7e52aa9836ed3dbcca475c (diff)
downloadandroid_packages_apps_Gallery2-4d0a8c06636c34fcee392031c57351c1512f4b91.tar.gz
android_packages_apps_Gallery2-4d0a8c06636c34fcee392031c57351c1512f4b91.tar.bz2
android_packages_apps_Gallery2-4d0a8c06636c34fcee392031c57351c1512f4b91.zip
SnapdragonGallery: Add 64-bit makeup library support
Change the face detection handle to long for supporting 64-bit makeup library Change-Id: Ibfc15b3ae36c4831190adeb55f379e28589e21cd CRs-Fixed: 1040760
Diffstat (limited to 'src/com')
-rw-r--r--src/com/thundersoft/hz/selfportrait/detect/FaceDetect.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/com/thundersoft/hz/selfportrait/detect/FaceDetect.java b/src/com/thundersoft/hz/selfportrait/detect/FaceDetect.java
index a5c7fb043..99eb33ec8 100644
--- a/src/com/thundersoft/hz/selfportrait/detect/FaceDetect.java
+++ b/src/com/thundersoft/hz/selfportrait/detect/FaceDetect.java
@@ -24,7 +24,7 @@ import android.util.Log;
public class FaceDetect {
private static final String TAG = "FaceDetect";
- private int mHandle = 0;
+ private long mHandle = 0;
static {
try {
@@ -71,9 +71,9 @@ public class FaceDetect {
return res;
}
- private static native int native_create();
- private static native void native_destroy(int handle);
- private static native int native_detect(int handle, Bitmap bmp);
- private static native int native_face_info(int handle, int index, Rect face, Rect eye1,
+ private static native long native_create();
+ private static native void native_destroy(long handle);
+ private static native int native_detect(long handle, Bitmap bmp);
+ private static native int native_face_info(long handle, int index, Rect face, Rect eye1,
Rect eye2, Rect mouth);
}