diff options
| author | Ruben Brunk <rubenbrunk@google.com> | 2014-01-14 15:27:58 -0800 |
|---|---|---|
| committer | Ruben Brunk <rubenbrunk@google.com> | 2014-01-16 18:27:08 -0800 |
| commit | 61cf9eb920206408a2a9c01cc7a5c5b68107069c (patch) | |
| tree | 06adb29d698896c6c16ad0862f98cd432ce1e80d /include/hardware/camera3.h | |
| parent | 2ff730ccd04cac320ceb438043bd8b1099389335 (diff) | |
| download | platform_hardware_libhardware-61cf9eb920206408a2a9c01cc7a5c5b68107069c.tar.gz platform_hardware_libhardware-61cf9eb920206408a2a9c01cc7a5c5b68107069c.tar.bz2 platform_hardware_libhardware-61cf9eb920206408a2a9c01cc7a5c5b68107069c.zip | |
camera3: Update vendor tag spec for HAL 3.2.
- Deprecates vendor tag specification in camera3 device.
- Moves vendor tag ops declaration to camera metadata library and
cleans up definitions.
- Updates the example HAL.
Change-Id: Ifb16bb0d4bbc896bc32d33dd150e7e174af57dad
Diffstat (limited to 'include/hardware/camera3.h')
| -rw-r--r-- | include/hardware/camera3.h | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/include/hardware/camera3.h b/include/hardware/camera3.h index 60097061..f93c066a 100644 --- a/include/hardware/camera3.h +++ b/include/hardware/camera3.h @@ -21,19 +21,25 @@ #include "camera_common.h" /** - * Camera device HAL 3.1 [ CAMERA_DEVICE_API_VERSION_3_1 ] + * Camera device HAL 3.2 [ CAMERA_DEVICE_API_VERSION_3_2 ] * * EXPERIMENTAL. * * Supports the android.hardware.Camera API. * * Camera devices that support this version of the HAL must return - * CAMERA_DEVICE_API_VERSION_3_1 in camera_device_t.common.version and in + * CAMERA_DEVICE_API_VERSION_3_2 in camera_device_t.common.version and in * camera_info_t.device_version (from camera_module_t.get_camera_info). * - * Camera modules that may contain version 3.1 devices must implement at least - * version 2.0 of the camera module interface (as defined by - * camera_module_t.common.module_api_version). + * CAMERA_DEVICE_API_VERSION_3_2: + * Camera modules that may contain version 3.2 devices must implement at + * least version 2.2 of the camera module interface (as defined by + * camera_module_t.common.module_api_version). + * + * <= CAMERA_DEVICE_API_VERSION_3_1: + * Camera modules that may contain version 3.1 (or 3.0) devices must + * implement at least version 2.0 of the camera module interface + * (as defined by camera_module_t.common.module_api_version). * * See camera_common.h for more versioning details. * @@ -88,6 +94,11 @@ * - configure_streams passes consumer usage flags to the HAL. * * - flush call to drop all in-flight requests/buffers as fast as possible. + * + * 3.2: Minor revision of expanded-capability HAL: + * + * - Deprecates get_metadata_vendor_tag_ops. Please use get_vendor_tag_ops + * in camera_common.h instead. */ /** @@ -2081,6 +2092,10 @@ typedef struct camera3_device_ops { * The definition of vendor_tag_query_ops_t can be found in * system/media/camera/include/system/camera_metadata.h. * + * >= CAMERA_DEVICE_API_VERSION_3_2: + * DEPRECATED. This function has been deprecated and should be set to + * NULL by the HAL. Please implement get_vendor_tag_ops in camera_common.h + * instead. */ void (*get_metadata_vendor_tag_ops)(const struct camera3_device*, vendor_tag_query_ops_t* ops); |
