From 4d0a8c06636c34fcee392031c57351c1512f4b91 Mon Sep 17 00:00:00 2001 From: Jay Wang Date: Tue, 12 Jul 2016 14:06:12 -0700 Subject: 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 --- src/com/thundersoft/hz/selfportrait/detect/FaceDetect.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/com') 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); } -- cgit v1.2.3