summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChien-Yu Chen <cychen@google.com>2015-04-14 17:29:40 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-04-14 17:29:41 +0000
commit2f33dbc6ca08d45efea2df775c158e2a11e07ab6 (patch)
treeb465e416af6302e7e0dda0826c9766f33bbc2cfc /include
parentb23cabdb71b98dc5e852f5d06be271696fea92c7 (diff)
parent618ff8a48a0c895a78f91f5692510c2a809425c3 (diff)
downloadframeworks_av-2f33dbc6ca08d45efea2df775c158e2a11e07ab6.zip
frameworks_av-2f33dbc6ca08d45efea2df775c158e2a11e07ab6.tar.gz
frameworks_av-2f33dbc6ca08d45efea2df775c158e2a11e07ab6.tar.bz2
Merge "camera2: add reprocess support"
Diffstat (limited to 'include')
-rw-r--r--include/camera/camera2/CaptureRequest.h1
-rw-r--r--include/camera/camera2/ICameraDeviceUser.h13
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*/