diff options
| author | Wu-cheng Li <wuchengli@google.com> | 2011-11-14 20:43:57 +0800 |
|---|---|---|
| committer | Wu-cheng Li <wuchengli@google.com> | 2011-11-29 14:28:54 +0800 |
| commit | 3dc54060c139f5ebbcf3494b346785ea85d4afa8 (patch) | |
| tree | 4e638b85b3d948c534c8a3e0a2284a63e54b121a | |
| parent | 3544e33247fb66de561f8007f553f99c6e087f54 (diff) | |
| download | system_core-3dc54060c139f5ebbcf3494b346785ea85d4afa8.tar.gz system_core-3dc54060c139f5ebbcf3494b346785ea85d4afa8.tar.bz2 system_core-3dc54060c139f5ebbcf3494b346785ea85d4afa8.zip | |
Add camera focus move message.
bug:5534973
Change-Id: I45213b1a4db3dbcfc0ab124689f27a88335fb26b
| -rw-r--r-- | include/system/camera.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/system/camera.h b/include/system/camera.h index cdfa2569..62167cf8 100644 --- a/include/system/camera.h +++ b/include/system/camera.h @@ -85,6 +85,9 @@ enum { // request FRAME and METADATA. Or the apps can request only FRAME or only // METADATA. CAMERA_MSG_PREVIEW_METADATA = 0x0400, // dataCallback + // Notify on autofocus start and stop. This is useful in continuous + // autofocus - FOCUS_MODE_CONTINUOUS_VIDEO and FOCUS_MODE_CONTINUOUS_PICTURE. + CAMERA_MSG_FOCUS_MOVE = 0x0800, // notifyCallback CAMERA_MSG_ALL_MSGS = 0xFFFF }; @@ -142,6 +145,12 @@ enum { * Stop the face detection. */ CAMERA_CMD_STOP_FACE_DETECTION = 7, + + /** + * Enable/disable focus move callback (CAMERA_MSG_FOCUS_MOVE). Passing + * arg1 = 0 will disable, while passing arg1 = 1 will enable the callback. + */ + CAMERA_CMD_ENABLE_FOCUS_MOVE_MSG = 8, }; /** camera fatal errors */ |
