summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Ray <aray@google.com>2013-07-26 20:41:59 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-07-26 20:42:04 +0000
commitdc1a7cbe8f1b3a28c1addc0395820b399576ac61 (patch)
treeb7f0df8c0a8039d72a118058625c9953bba6175a
parente495baf7d7ff50e1ff4ee0064a1379f2c25fde8f (diff)
parent2ce219a7464d05c55f95783c1a7d9d3328cb2930 (diff)
downloadhardware_libhardware-dc1a7cbe8f1b3a28c1addc0395820b399576ac61.zip
hardware_libhardware-dc1a7cbe8f1b3a28c1addc0395820b399576ac61.tar.gz
hardware_libhardware-dc1a7cbe8f1b3a28c1addc0395820b399576ac61.tar.bz2
Merge "camera3: Pass consumer information in configure_streams"
-rw-r--r--include/hardware/camera3.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/hardware/camera3.h b/include/hardware/camera3.h
index 3a900fc..f9b63f4 100644
--- a/include/hardware/camera3.h
+++ b/include/hardware/camera3.h
@@ -82,6 +82,10 @@
* management. Bidirectional streams replace STREAM_FROM_STREAM construct.
*
* - Limited mode semantics for older/limited hardware devices.
+ *
+ * 3.1: Minor revision of expanded-capability HAL:
+ *
+ * - configure_streams passes consumer usage flags to the HAL.
*/
/**
@@ -1041,6 +1045,9 @@ typedef enum camera3_stream_type {
* remain valid as if configure_streams() had not been called.
*
* The endpoint of the stream is not visible to the camera HAL device.
+ * In DEVICE_API_VERSION_3_1, this was changed to share consumer usage flags
+ * on streams where the camera is a producer (OUTPUT and BIDIRECTIONAL stream
+ * types) see the usage field below.
*/
typedef struct camera3_stream {
@@ -1092,6 +1099,25 @@ typedef struct camera3_stream {
* the producer and the consumer will be combined together and then passed
* to the platform gralloc HAL module for allocating the gralloc buffers for
* each stream.
+ *
+ * Version information:
+ *
+ * == CAMERA_DEVICE_API_VERSION_3_0:
+ *
+ * No initial value guaranteed when passed via configure_streams().
+ * HAL may not use this field as input, and must write over this field
+ * with its usage flags.
+ *
+ * >= CAMERA_DEVICE_API_VERSION_3_1:
+ *
+ * For stream_type OUTPUT and BIDIRECTIONAL, when passed via
+ * configure_streams(), the initial value of this is the consumer's
+ * usage flags. The HAL may use these consumer flags to decide stream
+ * configuration.
+ * For stream_type INPUT, when passed via configure_streams(), the initial
+ * value of this is 0.
+ * For all streams passed via configure_streams(), the HAL must write
+ * over this field with its usage flags.
*/
uint32_t usage;