diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2015-04-15 17:56:23 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-15 17:56:26 +0000 |
commit | c44111b22c26236cb0b32d3fbd1cc9fad3fb28ff (patch) | |
tree | 3eae04149058cd321b732fb201efb1c2d3e465b4 /services/camera/libcameraservice/common/CameraDeviceBase.h | |
parent | a5bf4e0339a10b7db936c739fbfd6cf3cb00fbb8 (diff) | |
parent | 4d44cad22ea925a651463f2d51d6586c14d4b787 (diff) | |
download | frameworks_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.h | 7 |
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; |