summaryrefslogtreecommitdiffstats
path: root/include/camera/Camera.h
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2010-10-14 20:17:44 +0800
committerWu-cheng Li <wuchengli@google.com>2010-10-25 15:02:44 +0800
commite09591eff55fdff1868b32c3e046c62f800330fc (patch)
treea426ffeb610452b7020a7805f7a8a729b36f5b17 /include/camera/Camera.h
parent9065ce6207730f55566eb3b78f9b487b1a4502b6 (diff)
downloadframeworks_av-e09591eff55fdff1868b32c3e046c62f800330fc.zip
frameworks_av-e09591eff55fdff1868b32c3e046c62f800330fc.tar.gz
frameworks_av-e09591eff55fdff1868b32c3e046c62f800330fc.tar.bz2
Mirror the camera preview if the camera is front-facing.
bug:3095272 Change-Id: Ib1c1d1edc06a33e9d4d2dcb42bc1dd2c25b1310c
Diffstat (limited to 'include/camera/Camera.h')
-rw-r--r--include/camera/Camera.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/camera/Camera.h b/include/camera/Camera.h
index 171a3b6..8d8edd6 100644
--- a/include/camera/Camera.h
+++ b/include/camera/Camera.h
@@ -81,6 +81,18 @@ enum {
enum {
CAMERA_CMD_START_SMOOTH_ZOOM = 1,
CAMERA_CMD_STOP_SMOOTH_ZOOM = 2,
+ // Set the clockwise rotation of preview display (setPreviewDisplay) in
+ // degrees. This affects the preview frames and the picture displayed after
+ // snapshot. This method is useful for portrait mode applications. Note that
+ // preview display of front-facing cameras is flipped horizontally before
+ // the rotation, that is, the image is reflected along the central vertical
+ // axis of the camera sensor. So the users can see themselves as looking
+ // into a mirror.
+ //
+ // This does not affect the order of byte array of CAMERA_MSG_PREVIEW_FRAME,
+ // CAMERA_MSG_VIDEO_FRAME, CAMERA_MSG_POSTVIEW_FRAME, CAMERA_MSG_RAW_IMAGE,
+ // or CAMERA_MSG_COMPRESSED_IMAGE. This is not allowed to be set during
+ // preview.
CAMERA_CMD_SET_DISPLAY_ORIENTATION = 3,
// cmdType to disable/enable shutter sound.