diff options
Diffstat (limited to 'src/com/android/camera/ui/FaceView.java')
-rw-r--r-- | src/com/android/camera/ui/FaceView.java | 18 |
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 93c4fee11..0bdf0de15 100644 --- a/src/com/android/camera/ui/FaceView.java +++ b/src/com/android/camera/ui/FaceView.java @@ -352,25 +352,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; |