diff options
author | Chien-Yu Chen <cychen@google.com> | 2015-04-14 17:29:40 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-14 17:29:41 +0000 |
commit | 2f33dbc6ca08d45efea2df775c158e2a11e07ab6 (patch) | |
tree | b465e416af6302e7e0dda0826c9766f33bbc2cfc /services/camera/libcameraservice/api2/CameraDeviceClient.h | |
parent | b23cabdb71b98dc5e852f5d06be271696fea92c7 (diff) | |
parent | 618ff8a48a0c895a78f91f5692510c2a809425c3 (diff) | |
download | frameworks_av-2f33dbc6ca08d45efea2df775c158e2a11e07ab6.zip frameworks_av-2f33dbc6ca08d45efea2df775c158e2a11e07ab6.tar.gz frameworks_av-2f33dbc6ca08d45efea2df775c158e2a11e07ab6.tar.bz2 |
Merge "camera2: add reprocess support"
Diffstat (limited to 'services/camera/libcameraservice/api2/CameraDeviceClient.h')
-rw-r--r-- | services/camera/libcameraservice/api2/CameraDeviceClient.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/services/camera/libcameraservice/api2/CameraDeviceClient.h b/services/camera/libcameraservice/api2/CameraDeviceClient.h index a3dbb90..f2d8899 100644 --- a/services/camera/libcameraservice/api2/CameraDeviceClient.h +++ b/services/camera/libcameraservice/api2/CameraDeviceClient.h @@ -86,6 +86,13 @@ public: virtual status_t createStream(const OutputConfiguration &outputConfiguration); + // Create an input stream of width, height, and format. + virtual status_t createInputStream(int width, int height, int format); + + // Get the buffer producer of the input stream + virtual status_t getInputBufferProducer( + /*out*/sp<IGraphicBufferProducer> *producer); + // Create a request object from a template. virtual status_t createDefaultRequest(int templateId, /*out*/ @@ -161,10 +168,18 @@ private: android_dataspace dataSpace, const CameraMetadata& info, /*out*/int32_t* outWidth, /*out*/int32_t* outHeight); - // IGraphicsBufferProducer binder -> Stream ID + // IGraphicsBufferProducer binder -> Stream ID for output streams KeyedVector<sp<IBinder>, int> mStreamMap; - // Stream ID + struct InputStreamConfiguration { + bool configured; + int32_t width; + int32_t height; + int32_t format; + int32_t id; + } mInputStream; + + // Request ID Vector<int> mStreamingRequestList; int32_t mRequestIdCounter; |