diff options
author | Shuzhen Wang <shuzhenwang@google.com> | 2018-01-25 15:52:45 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2018-01-25 15:52:45 +0000 |
commit | bc04a28238082241973fce57a7c3fe2cb2bccd9e (patch) | |
tree | 6843d78c71e821faa436347ba29c3523225e27d3 | |
parent | 437ce43787ea0a114483b25944e4efb65d91578d (diff) | |
parent | 1d4c09e83ee7cc48210e67ed2da9b0cc10f0a1b7 (diff) | |
download | libhardware-bc04a28238082241973fce57a7c3fe2cb2bccd9e.tar.gz |
Merge "camera3: Add physical camera id field in capture result"
-rw-r--r-- | include/hardware/camera3.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/include/hardware/camera3.h b/include/hardware/camera3.h index ad088835..a58b8b4f 100644 --- a/include/hardware/camera3.h +++ b/include/hardware/camera3.h @@ -2498,6 +2498,37 @@ typedef struct camera3_capture_result { */ uint32_t partial_result; + /** + * >= CAMERA_DEVICE_API_VERSION_3_5: + * + * Specifies the number of physical camera metadata this capture result + * contains. It must be equal to the number of physical cameras being + * requested from. + * + * If the current camera device is not a logical multi-camera, or the + * corresponding capture_request doesn't request on any physical camera, + * this field must be 0. + */ + uint32_t num_physcam_metadata; + + /** + * >= CAMERA_DEVICE_API_VERSION_3_5: + * + * An array of strings containing the physical camera ids for the returned + * physical camera metadata. The length of the array is + * num_physcam_metadata. + */ + const char **physcam_ids; + + /** + * >= CAMERA_DEVICE_API_VERSION_3_5: + * + * The array of physical camera metadata for the physical cameras being + * requested upon. This array should have a 1-to-1 mapping with the + * physcam_ids. The length of the array is num_physcam_metadata. + */ + const camera_metadata_t **physcam_metadata; + } camera3_capture_result_t; /********************************************************************** |