summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui/FaceView.java
diff options
context:
space:
mode:
authorKrupal Divvela <kdivvela@codeaurora.org>2015-07-21 19:54:47 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2015-07-22 01:48:33 -0700
commitb01d2726c692e3626061e6a082b0cd2fe5bf76ff (patch)
tree2277a056c0b1daeb0662790694c4addd821472da /src/com/android/camera/ui/FaceView.java
parentc28dbaf74ea7627cbea47537049b972dde6bdc4a (diff)
downloadandroid_packages_apps_Snap-b01d2726c692e3626061e6a082b0cd2fe5bf76ff.tar.gz
android_packages_apps_Snap-b01d2726c692e3626061e6a082b0cd2fe5bf76ff.tar.bz2
android_packages_apps_Snap-b01d2726c692e3626061e6a082b0cd2fe5bf76ff.zip
SnapdragonCamera: Fix FD roll_dir issue
Fix mouth position mismatch due to change sent due to wrong roll_dir. Change-Id: I5c3c4c8c74be6f055581656613a0703c596a42e5
Diffstat (limited to 'src/com/android/camera/ui/FaceView.java')
-rw-r--r--src/com/android/camera/ui/FaceView.java18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/com/android/camera/ui/FaceView.java b/src/com/android/camera/ui/FaceView.java
index 167aec030..61142fc4d 100644
--- a/src/com/android/camera/ui/FaceView.java
+++ b/src/com/android/camera/ui/FaceView.java
@@ -351,25 +351,17 @@ public class FaceView extends View
Log.e(TAG, "smile: " + face.getSmileDegree() + "," +
face.getSmileScore());
if (face.getSmileDegree() < smile_threashold_no_smile) {
- if ((mDisplayRotation == 90) ||
- (mDisplayRotation == 270)) {
- point[0] = face.mouth.x + dx - delta_x;
- point[1] = face.mouth.y;
- point[2] = face.mouth.x + dx + delta_x;
- point[3] = face.mouth.y;
- } else {
- point[0] = face.mouth.x;
- point[1] = face.mouth.y + dy - delta_y;
- point[2] = face.mouth.x ;
- point[3] = face.mouth.y + dy + delta_y;
- }
+ point[0] = face.mouth.x + dx - delta_x;
+ point[1] = face.mouth.y;
+ point[2] = face.mouth.x + dx + delta_x;
+ point[3] = face.mouth.y;
+
Matrix faceMatrix = new Matrix(mMatrix);
faceMatrix.preRotate(face.getRollDirection(),
face.mouth.x, face.mouth.y);
faceMatrix.mapPoints(point);
canvas.drawLine(point[0] + dx, point[1] + dy,
point[2] + dx, point[3] + dy, mPaint);
-
} else if (face.getSmileDegree() <
smile_threashold_small_smile) {
int rotation_mouth = 360 - mDisplayRotation;