summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/common
diff options
context:
space:
mode:
authorRuben Brunk <rubenbrunk@google.com>2015-08-13 17:58:46 -0700
committerRuben Brunk <rubenbrunk@google.com>2015-08-14 17:30:24 -0700
commitc78ac26e3a65328fc0118f16ee76a800d0687eb7 (patch)
tree9009e37c981c7cbfdd106c44de2622edf1672a49 /services/camera/libcameraservice/common
parenta09f8cf8c76fa946c4b91be059b420941abcdc3b (diff)
downloadframeworks_av-c78ac26e3a65328fc0118f16ee76a800d0687eb7.zip
frameworks_av-c78ac26e3a65328fc0118f16ee76a800d0687eb7.tar.gz
frameworks_av-c78ac26e3a65328fc0118f16ee76a800d0687eb7.tar.bz2
Add experimental camera session prepare API.
Bug: 18949148 Change-Id: I8f73e68ea2e3acc60d98954106f364d13f439a82
Diffstat (limited to 'services/camera/libcameraservice/common')
-rw-r--r--services/camera/libcameraservice/common/CameraDeviceBase.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/common/CameraDeviceBase.h b/services/camera/libcameraservice/common/CameraDeviceBase.h
index cd25949..7b083a3 100644
--- a/services/camera/libcameraservice/common/CameraDeviceBase.h
+++ b/services/camera/libcameraservice/common/CameraDeviceBase.h
@@ -294,6 +294,12 @@ class CameraDeviceBase : public virtual RefBase {
virtual status_t tearDown(int streamId) = 0;
/**
+ * Prepare stream by preallocating up to maxCount buffers for it asynchronously.
+ * Calls notifyPrepared() once allocation is complete.
+ */
+ virtual status_t prepare(int maxCount, int streamId) = 0;
+
+ /**
* Get the HAL device version.
*/
virtual uint32_t getDeviceVersion() = 0;