summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/device3/Camera3Stream.cpp
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 /services/camera/libcameraservice/device3/Camera3Stream.cpp
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 'services/camera/libcameraservice/device3/Camera3Stream.cpp')
-rw-r--r--services/camera/libcameraservice/device3/Camera3Stream.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/services/camera/libcameraservice/device3/Camera3Stream.cpp b/services/camera/libcameraservice/device3/Camera3Stream.cpp
index 4acbce3..d3c5cc3 100644
--- a/services/camera/libcameraservice/device3/Camera3Stream.cpp
+++ b/services/camera/libcameraservice/device3/Camera3Stream.cpp
@@ -346,6 +346,13 @@ status_t Camera3Stream::returnInputBuffer(const camera3_stream_buffer &buffer) {
return res;
}
+status_t Camera3Stream::getInputBufferProducer(sp<IGraphicBufferProducer> *producer) {
+ ATRACE_CALL();
+ Mutex::Autolock l(mLock);
+
+ return getInputBufferProducerLocked(producer);
+}
+
void Camera3Stream::fireBufferListenersLocked(
const camera3_stream_buffer& /*buffer*/, bool acquired, bool output) {
List<wp<Camera3StreamBufferListener> >::iterator it, end;
@@ -505,6 +512,10 @@ status_t Camera3Stream::returnInputBufferLocked(
ALOGE("%s: This type of stream does not support input", __FUNCTION__);
return INVALID_OPERATION;
}
+status_t Camera3Stream::getInputBufferProducerLocked(sp<IGraphicBufferProducer> *producer) {
+ ALOGE("%s: This type of stream does not support input", __FUNCTION__);
+ return INVALID_OPERATION;
+}
void Camera3Stream::addBufferListener(
wp<Camera3StreamBufferListener> listener) {