summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/common/CameraDeviceBase.h
diff options
context:
space:
mode:
authorEino-Ville Talvala <etalvala@google.com>2015-04-15 17:56:23 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-15 17:56:26 +0000
commitc44111b22c26236cb0b32d3fbd1cc9fad3fb28ff (patch)
tree3eae04149058cd321b732fb201efb1c2d3e465b4 /services/camera/libcameraservice/common/CameraDeviceBase.h
parenta5bf4e0339a10b7db936c739fbfd6cf3cb00fbb8 (diff)
parent4d44cad22ea925a651463f2d51d6586c14d4b787 (diff)
downloadframeworks_av-c44111b22c26236cb0b32d3fbd1cc9fad3fb28ff.zip
frameworks_av-c44111b22c26236cb0b32d3fbd1cc9fad3fb28ff.tar.gz
frameworks_av-c44111b22c26236cb0b32d3fbd1cc9fad3fb28ff.tar.bz2
Merge "Camera2: Add prepare for output streams"
Diffstat (limited to 'services/camera/libcameraservice/common/CameraDeviceBase.h')
-rw-r--r--services/camera/libcameraservice/common/CameraDeviceBase.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/common/CameraDeviceBase.h b/services/camera/libcameraservice/common/CameraDeviceBase.h
index 6ece359..f02fc32 100644
--- a/services/camera/libcameraservice/common/CameraDeviceBase.h
+++ b/services/camera/libcameraservice/common/CameraDeviceBase.h
@@ -199,6 +199,7 @@ class CameraDeviceBase : public virtual RefBase {
virtual void notifyIdle() = 0;
virtual void notifyShutter(const CaptureResultExtras &resultExtras,
nsecs_t timestamp) = 0;
+ virtual void notifyPrepared(int streamId) = 0;
// Required only for API1
virtual void notifyAutoFocus(uint8_t newState, int triggerId) = 0;
@@ -281,6 +282,12 @@ class CameraDeviceBase : public virtual RefBase {
virtual status_t flush(int64_t *lastFrameNumber = NULL) = 0;
/**
+ * Prepare stream by preallocating buffers for it asynchronously.
+ * Calls notifyPrepared() once allocation is complete.
+ */
+ virtual status_t prepare(int streamId) = 0;
+
+ /**
* Get the HAL device version.
*/
virtual uint32_t getDeviceVersion() = 0;