diff options
author | Eino-Ville Talvala <etalvala@google.com> | 2015-04-11 13:15:45 -0700 |
---|---|---|
committer | Eino-Ville Talvala <etalvala@google.com> | 2015-04-15 10:51:33 -0700 |
commit | 4d44cad22ea925a651463f2d51d6586c14d4b787 (patch) | |
tree | 3e9fa49f6f98a8deee591f58054488ddc6e46505 /include | |
parent | 4123d6db0642cd13e69230705b12d6b6fee6f73f (diff) | |
download | frameworks_av-4d44cad22ea925a651463f2d51d6586c14d4b787.zip frameworks_av-4d44cad22ea925a651463f2d51d6586c14d4b787.tar.gz frameworks_av-4d44cad22ea925a651463f2d51d6586c14d4b787.tar.bz2 |
Camera2: Add prepare for output streams
The prepare call asynchronously pre-allocates buffers for a given
output stream, and then fires the onPrepared callback.
Not implemented for Camera2Device or used in Camera2Client.
Change-Id: I1cccdfff846dd6985133c591dbdceed823929ade
Diffstat (limited to 'include')
-rw-r--r-- | include/camera/camera2/ICameraDeviceCallbacks.h | 3 | ||||
-rw-r--r-- | include/camera/camera2/ICameraDeviceUser.h | 5 |
2 files changed, 8 insertions, 0 deletions
diff --git a/include/camera/camera2/ICameraDeviceCallbacks.h b/include/camera/camera2/ICameraDeviceCallbacks.h index 670480b..c57b39f 100644 --- a/include/camera/camera2/ICameraDeviceCallbacks.h +++ b/include/camera/camera2/ICameraDeviceCallbacks.h @@ -65,6 +65,9 @@ public: // One way virtual void onResultReceived(const CameraMetadata& metadata, const CaptureResultExtras& resultExtras) = 0; + + // One way + virtual void onPrepared(int streamId) = 0; }; // ---------------------------------------------------------------------------- diff --git a/include/camera/camera2/ICameraDeviceUser.h b/include/camera/camera2/ICameraDeviceUser.h index c850924..619b161 100644 --- a/include/camera/camera2/ICameraDeviceUser.h +++ b/include/camera/camera2/ICameraDeviceUser.h @@ -133,6 +133,11 @@ public: */ virtual status_t flush(/*out*/ int64_t* lastFrameNumber = NULL) = 0; + + /** + * Preallocate buffers for a given output stream asynchronously. + */ + virtual status_t prepare(int streamId) = 0; }; // ---------------------------------------------------------------------------- |