diff options
author | junjiez <junjiez@codeaurora.org> | 2017-02-07 10:13:36 +0800 |
---|---|---|
committer | junjiez <junjiez@codeaurora.org> | 2017-03-14 15:42:54 +0800 |
commit | 271a754c8ea933f981e2d9145647c6205bd56bbe (patch) | |
tree | 4c4bae1ef575b79f37ffbf066e768edd3566dc43 /src/com/android/camera/CaptureUI.java | |
parent | a68765fb88ee78d86490f8987f3f46ff4bb4a266 (diff) | |
download | android_packages_apps_Snap-271a754c8ea933f981e2d9145647c6205bd56bbe.tar.gz android_packages_apps_Snap-271a754c8ea933f981e2d9145647c6205bd56bbe.tar.bz2 android_packages_apps_Snap-271a754c8ea933f981e2d9145647c6205bd56bbe.zip |
SnapdragonCamera: Smile/blink/gaze detection
Implement Smile/blink/gaze detection feature and
add option to enable it in develop options.
CRs-Fixed: 1087487
Change-Id: I3005ca9767fbe38323e86255238cd4f96f34fbe5
Diffstat (limited to 'src/com/android/camera/CaptureUI.java')
-rwxr-xr-x | src/com/android/camera/CaptureUI.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureUI.java b/src/com/android/camera/CaptureUI.java index 025a17aa1..6ec09effd 100755 --- a/src/com/android/camera/CaptureUI.java +++ b/src/com/android/camera/CaptureUI.java @@ -1432,11 +1432,13 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, mFaceView.setDisplayOrientation(orientation); mFaceView.setMirror(mirror); mFaceView.setCameraBound(cameraBound); + mFaceView.setZoom(mModule.getZoomValue()); mFaceView.resume(); } public void updateFaceViewCameraBound(Rect cameraBound) { mFaceView.setCameraBound(cameraBound); + mFaceView.setZoom(mModule.getZoomValue()); } public void onStopFaceDetection() { @@ -1450,8 +1452,9 @@ public class CaptureUI implements FocusOverlayManager.FocusUI, public void onFaceDetection(Face[] faces, CameraManager.CameraProxy camera) { } - public void onFaceDetection(android.hardware.camera2.params.Face[] faces) { - mFaceView.setFaces(faces); + public void onFaceDetection(android.hardware.camera2.params.Face[] faces, + ExtendedFace[] extendedFaces) { + mFaceView.setFaces(faces,extendedFaces); } public Point getSurfaceViewSize() { |