summaryrefslogtreecommitdiff
path: root/src/android/camera_stream.cpp
diff options
context:
space:
mode:
authorHirokazu Honda <hiroh@chromium.org>2020-10-21 10:39:52 +0900
committerKieran Bingham <kieran.bingham@ideasonboard.com>2020-10-21 11:18:12 +0100
commitb8dd5ce944eca4d17df585bb059595729905f7ec (patch)
treef97c18dceae02825949738285b2115abe69e3b8a /src/android/camera_stream.cpp
parent88919c1e17b4d1bd8c3328899f533424f2cd9181 (diff)
android: Modify PostProcessor interface
In PostProcessor::process(), the |source| argument doesn't have to be a pointer. This replaces its type, const pointer, with const reference as the latter is preferred to the former. libcamera::Span is cheap to construct/copy/move. We should deal with the type as pass-by-value parameter. Therefore this also drops the const reference in the |destination| argument. Signed-off-by: Hirokazu Honda <hiroh@chromium.org> Reviewed-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/camera_stream.cpp')
-rw-r--r--src/android/camera_stream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp
index eae451ec..3e5d6bef 100644
--- a/src/android/camera_stream.cpp
+++ b/src/android/camera_stream.cpp
@@ -102,7 +102,7 @@ int CameraStream::process(const libcamera::FrameBuffer &source,
if (!postProcessor_)
return 0;
- return postProcessor_->process(&source, dest->maps()[0], metadata);
+ return postProcessor_->process(source, dest->maps()[0], metadata);
}
FrameBuffer *CameraStream::getBuffer()