diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-10-14 20:17:44 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-10-25 15:02:44 +0800 |
commit | d55f7e56b9761227f0a310b34d9016fde91613d6 (patch) | |
tree | 8b20f666b14e4e01ec0b208fe8e75e5881db03e7 /include/camera | |
parent | 197eee425c813e35144b2e52f7282b17a57289a5 (diff) | |
download | frameworks_base-d55f7e56b9761227f0a310b34d9016fde91613d6.zip frameworks_base-d55f7e56b9761227f0a310b34d9016fde91613d6.tar.gz frameworks_base-d55f7e56b9761227f0a310b34d9016fde91613d6.tar.bz2 |
Mirror the camera preview if the camera is front-facing.
bug:3095272
Change-Id: Ib1c1d1edc06a33e9d4d2dcb42bc1dd2c25b1310c
Diffstat (limited to 'include/camera')
-rw-r--r-- | include/camera/Camera.h | 12 |
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. |