From fb9051ff7407d6e1abcfafb40a951f55c38dafe9 Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Thu, 28 Jan 2021 22:42:15 +0000 Subject: android: post_processor: Change the type destination in process() The type of the destination buffer in PostProcessor::process() is libcamera::Span. libcamera::Span is used for one dimension buffer (e.g. blob buffer). The destination can be multiple dimensions buffer (e.g. yuv frame). Therefore, this changes the type of the destination buffer to MappedFrameBuffer. Signed-off-by: Hirokazu Honda Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Signed-off-by: Jacopo Mondi --- src/android/post_processor.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/android/post_processor.h') diff --git a/src/android/post_processor.h b/src/android/post_processor.h index bda93bb4..ac40d341 100644 --- a/src/android/post_processor.h +++ b/src/android/post_processor.h @@ -8,9 +8,10 @@ #define __ANDROID_POST_PROCESSOR_H__ #include -#include #include +#include + class CameraMetadata; class PostProcessor @@ -21,7 +22,7 @@ public: virtual int configure(const libcamera::StreamConfiguration &inCfg, const libcamera::StreamConfiguration &outCfg) = 0; virtual int process(const libcamera::FrameBuffer &source, - libcamera::Span destination, + libcamera::MappedBuffer *destination, const CameraMetadata &requestMetadata, CameraMetadata *resultMetadata) = 0; }; -- cgit v1.2.1