From 8708904fad6f4ff94a30e2b3b537012b7c637c4d Mon Sep 17 00:00:00 2001 From: Hirokazu Honda Date: Thu, 26 Aug 2021 20:25:32 +0900 Subject: libcamera: mapped_framebuffer: Return plane begin address by MappedBuffer::maps() MappedBuffer::maps() returns std::vector. Plane has the address, but the address points the beginning of the buffer containing the plane. This makes the Plane point the beginning of the plane. So MappedBuffer::maps()[i].data() returns the address of i-th plane. Signed-off-by: Hirokazu Honda Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- src/android/mm/generic_camera_buffer.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/android') diff --git a/src/android/mm/generic_camera_buffer.cpp b/src/android/mm/generic_camera_buffer.cpp index def2bc12..a41ae2c9 100644 --- a/src/android/mm/generic_camera_buffer.cpp +++ b/src/android/mm/generic_camera_buffer.cpp @@ -54,8 +54,6 @@ private: off_t bufferLength_; bool mapped_; std::vector planeInfo_; - /* \todo Remove planes_ when it will be added to MappedBuffer */ - std::vector> planes_; }; CameraBuffer::Private::Private([[maybe_unused]] CameraBuffer *cameraBuffer, -- cgit v1.2.1