summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/ui
diff options
context:
space:
mode:
authorKrupal Divvela <kdivvela@codeaurora.org>2015-07-21 19:54:47 +0530
committerKrupal Divvela <kdivvela@codeaurora.org>2015-07-22 09:44:04 +0530
commit3c9d167c02f9cdb763a2b39841e01d0f9cb8d283 (patch)
tree965035dded055f0388f25a5d9ca893e81da4149f /src/com/android/camera/ui
parent8a8ccc8013534838734887874c59121012538029 (diff)
downloadandroid_packages_apps_Snap-3c9d167c02f9cdb763a2b39841e01d0f9cb8d283.tar.gz
android_packages_apps_Snap-3c9d167c02f9cdb763a2b39841e01d0f9cb8d283.tar.bz2
android_packages_apps_Snap-3c9d167c02f9cdb763a2b39841e01d0f9cb8d283.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')
-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;