diff options
author | James Dong <jdong@google.com> | 2012-08-01 16:41:24 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2012-08-01 17:00:12 -0700 |
commit | 6c4c66a7670e3a20867866384666380ae7b706c6 (patch) | |
tree | cfcc176e5c353de17075c3175078b6b2f8d1e46a /include/system | |
parent | 3cac204d3537c6a356c922bffb07fcb97f5bb0c7 (diff) | |
download | system_core-6c4c66a7670e3a20867866384666380ae7b706c6.zip system_core-6c4c66a7670e3a20867866384666380ae7b706c6.tar.gz system_core-6c4c66a7670e3a20867866384666380ae7b706c6.tar.bz2 |
Added a cmd for configuring number of video buffers for camera, if supported
o currently, only available in Camera2
Change-Id: Id9bf157496209af9be65d147e70aa4830158c88d
Diffstat (limited to 'include/system')
-rw-r--r-- | include/system/camera.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/system/camera.h b/include/system/camera.h index e4cacc5..7a4dd53 100644 --- a/include/system/camera.h +++ b/include/system/camera.h @@ -163,6 +163,17 @@ enum { * can silently finish itself or show a dialog. */ CAMERA_CMD_PING = 9, + + /** + * Configure the number of video buffers used for recording. The intended + * video buffer count for recording is passed as arg1, which must be + * greater than 0. This command must be sent before recording is started. + * This command returns INVALID_OPERATION error if it is sent after video + * recording is started, or the command is not supported at all. This + * command also returns a BAD_VALUE error if the intended video buffer + * count is non-positive or too big to be realized. + */ + CAMERA_CMD_SET_VIDEO_BUFFER_COUNT = 10, }; /** camera fatal errors */ |