mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 00:19:44 +03:00
libcamera: mapped_framebuffer: Return plane begin address by MappedBuffer::maps()
MappedBuffer::maps() returns std::vector<MappedBuffer::Plane>. 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 <hiroh@chromium.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
86a47fdcd9
commit
8708904fad
4 changed files with 68 additions and 13 deletions
|
@ -54,8 +54,6 @@ private:
|
|||
off_t bufferLength_;
|
||||
bool mapped_;
|
||||
std::vector<PlaneInfo> planeInfo_;
|
||||
/* \todo Remove planes_ when it will be added to MappedBuffer */
|
||||
std::vector<Span<uint8_t>> planes_;
|
||||
};
|
||||
|
||||
CameraBuffer::Private::Private([[maybe_unused]] CameraBuffer *cameraBuffer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue