diff options
author | Wu-cheng Li <wuchengli@google.com> | 2010-10-19 17:19:09 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2010-10-20 18:29:18 +0800 |
commit | b982fb4fd36a3cd24a0bb17c964139fe4c9cbb47 (patch) | |
tree | 1fe2daa156fed3a3d92f4a552397befda8438f18 /include/camera | |
parent | f4cd9be0390135269e22e42fd2e1fe61fdcf9863 (diff) | |
download | frameworks_base-b982fb4fd36a3cd24a0bb17c964139fe4c9cbb47.zip frameworks_base-b982fb4fd36a3cd24a0bb17c964139fe4c9cbb47.tar.gz frameworks_base-b982fb4fd36a3cd24a0bb17c964139fe4c9cbb47.tar.bz2 |
Mirror the preview for front-facing cameras. do not merge
Now overlay does ROT_90 before FLIP_V or FLIP_H. It should be FLIP_V
or FLIP_H first. The formula should be changed after overlay is fixed.
bug:3059865
Change-Id: Ie4366bf7f1fcac7383e8dfc74b1b865997bbbcc6
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 964700b..e6d84ba 100644 --- a/include/camera/Camera.h +++ b/include/camera/Camera.h @@ -83,6 +83,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, }; |