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>
This commit is contained in:
Hirokazu Honda 2020-10-21 10:39:52 +09:00 committed by Kieran Bingham
parent 88919c1e17
commit b8dd5ce944
4 changed files with 8 additions and 8 deletions

View file

@ -23,8 +23,8 @@ public:
int configure(const libcamera::StreamConfiguration &incfg,
const libcamera::StreamConfiguration &outcfg) override;
int process(const libcamera::FrameBuffer *source,
const libcamera::Span<uint8_t> &destination,
int process(const libcamera::FrameBuffer &source,
libcamera::Span<uint8_t> destination,
CameraMetadata *metadata) override;
private: