diff options
author | Chien-Yu Chen <cychen@google.com> | 2015-03-13 11:27:17 -0700 |
---|---|---|
committer | Chien-Yu Chen <cychen@google.com> | 2015-04-13 17:25:36 -0700 |
commit | 618ff8a48a0c895a78f91f5692510c2a809425c3 (patch) | |
tree | 9473236e1e759aecf921b87e50302d933bae041d /include | |
parent | 25f82752942b1c78aec8ee303d61afff85cff9d1 (diff) | |
download | frameworks_av-618ff8a48a0c895a78f91f5692510c2a809425c3.zip frameworks_av-618ff8a48a0c895a78f91f5692510c2a809425c3.tar.gz frameworks_av-618ff8a48a0c895a78f91f5692510c2a809425c3.tar.bz2 |
camera2: add reprocess support
Add support to create input stream, submit reprocess capture requests,
and receive reprocess capture results.
Change-Id: Iee2d4313f3d52616a484eaea7a28f5ef9d8a674b
Diffstat (limited to 'include')
-rw-r--r-- | include/camera/camera2/CaptureRequest.h | 1 | ||||
-rw-r--r-- | include/camera/camera2/ICameraDeviceUser.h | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/include/camera/camera2/CaptureRequest.h b/include/camera/camera2/CaptureRequest.h index e56d61f..eeab217 100644 --- a/include/camera/camera2/CaptureRequest.h +++ b/include/camera/camera2/CaptureRequest.h @@ -30,6 +30,7 @@ public: CameraMetadata mMetadata; Vector<sp<Surface> > mSurfaceList; + bool mIsReprocess; /** * Keep impl up-to-date with CaptureRequest.java in frameworks/base diff --git a/include/camera/camera2/ICameraDeviceUser.h b/include/camera/camera2/ICameraDeviceUser.h index e9f1f5a..c850924 100644 --- a/include/camera/camera2/ICameraDeviceUser.h +++ b/include/camera/camera2/ICameraDeviceUser.h @@ -103,6 +103,19 @@ public: virtual status_t createStream(const OutputConfiguration& outputConfiguration) = 0; + /** + * Create an input stream of width, height, and format (one of + * HAL_PIXEL_FORMAT_*) + * + * Return stream ID if it's a non-negative value. status_t if it's a + * negative value. + */ + virtual status_t createInputStream(int width, int height, int format) = 0; + + // get the buffer producer of the input stream + virtual status_t getInputBufferProducer( + sp<IGraphicBufferProducer> *producer) = 0; + // Create a request object from a template. virtual status_t createDefaultRequest(int templateId, /*out*/ |