summaryrefslogtreecommitdiff
path: root/src/android/camera_stream.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/android/camera_stream.cpp')
-rw-r--r--src/android/camera_stream.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp
index 8f47e4d8..f3cc77e7 100644
--- a/src/android/camera_stream.cpp
+++ b/src/android/camera_stream.cpp
@@ -143,15 +143,15 @@ int CameraStream::waitFence(int fence)
}
int CameraStream::process(const FrameBuffer &source,
- camera3_stream_buffer_t &camera3Dest,
+ Camera3RequestDescriptor::StreamBuffer &dest,
Camera3RequestDescriptor *request)
{
/* Handle waiting on fences on the destination buffer. */
- int fence = camera3Dest.acquire_fence;
+ int fence = dest.buffer.acquire_fence;
if (fence != -1) {
int ret = waitFence(fence);
::close(fence);
- camera3Dest.acquire_fence = -1;
+ dest.buffer.acquire_fence = -1;
if (ret < 0) {
LOG(HAL, Error) << "Failed waiting for fence: "
<< fence << ": " << strerror(-ret);
@@ -167,14 +167,14 @@ int CameraStream::process(const FrameBuffer &source,
* separate thread.
*/
const StreamConfiguration &output = configuration();
- CameraBuffer dest(*camera3Dest.buffer, output.pixelFormat, output.size,
- PROT_READ | PROT_WRITE);
- if (!dest.isValid()) {
+ CameraBuffer destBuffer(*dest.buffer.buffer, output.pixelFormat,
+ output.size, PROT_READ | PROT_WRITE);
+ if (!destBuffer.isValid()) {
LOG(HAL, Error) << "Failed to create destination buffer";
return -EINVAL;
}
- return postProcessor_->process(source, &dest, request);
+ return postProcessor_->process(source, &destBuffer, request);
}
FrameBuffer *CameraStream::getBuffer()