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 | e09591eff55fdff1868b32c3e046c62f800330fc (patch) | |
tree | a426ffeb610452b7020a7805f7a8a729b36f5b17 /include/camera | |
parent | 9065ce6207730f55566eb3b78f9b487b1a4502b6 (diff) | |
download | frameworks_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')
-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. |