diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2015-05-15 11:10:29 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2015-06-08 13:21:27 -0700 |
commit | 414fb90eae816e98d8b2d45a3dbce70f1dbc2064 (patch) | |
tree | 590372fe841378a3603400bdb3c389f945803e23 /include | |
parent | dca1bb5e79e197676356f374939b7ca5dfd1a195 (diff) | |
download | system_core-414fb90eae816e98d8b2d45a3dbce70f1dbc2064.zip system_core-414fb90eae816e98d8b2d45a3dbce70f1dbc2064.tar.gz system_core-414fb90eae816e98d8b2d45a3dbce70f1dbc2064.tar.bz2 |
Camera: Add new set video format/dataspace command
This allows the video encoding subsystem inform the camera what format
and dataspace should be used for metadata-mode buffers.
This is necessary to allow software encoders and other generic
consumers that cannot interpret
HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED buffers.
Bug: 13222807
Change-Id: I01090dc4dce11f075f7d3cd86daca5ecf3d9e995
Diffstat (limited to 'include')
-rw-r--r-- | include/system/camera.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/system/camera.h b/include/system/camera.h index 09c915d..5d0873a 100644 --- a/include/system/camera.h +++ b/include/system/camera.h @@ -174,6 +174,22 @@ enum { * count is non-positive or too big to be realized. */ CAMERA_CMD_SET_VIDEO_BUFFER_COUNT = 10, + + /** + * Configure an explicit format to use for video recording metadata mode. + * This can be used to switch the format from the + * default IMPLEMENTATION_DEFINED gralloc format to some other + * device-supported format, and the default dataspace from the BT_709 color + * space to some other device-supported dataspace. arg1 is the HAL pixel + * format, and arg2 is the HAL dataSpace. This command returns + * INVALID_OPERATION error if it is sent after video recording is started, + * or the command is not supported at all. + * + * If the gralloc format is set to a format other than + * IMPLEMENTATION_DEFINED, then HALv3 devices will use gralloc usage flags + * of SW_READ_OFTEN. + */ + CAMERA_CMD_SET_VIDEO_FORMAT = 11 }; /** camera fatal errors */ |