summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-10-13 02:26:49 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2019-11-20 21:47:43 +0200
commitb44cb6b5f89b7f0c7b8124a689026918116bb03c (patch)
tree9dcba1d4548bc2b4dcee352f805c71b5450c8c07 /src
parent6a1ff2615ba14eb70bec501270aacb531cb4c210 (diff)
libcamera: buffer: Add const accessor to Buffer planes
In order to inspect planes of a const Buffer, add a const accessor. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src')
-rw-r--r--src/libcamera/buffer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libcamera/buffer.cpp b/src/libcamera/buffer.cpp
index 4407201b..960eeb8f 100644
--- a/src/libcamera/buffer.cpp
+++ b/src/libcamera/buffer.cpp
@@ -182,6 +182,12 @@ void *Plane::mem()
*/
/**
+ * \fn BufferMemory::planes() const
+ * \brief Retrieve the planes within the buffer
+ * \return A const reference to a vector holding all Planes within the buffer
+ */
+
+/**
* \fn BufferMemory::planes()
* \brief Retrieve the planes within the buffer
* \return A reference to a vector holding all Planes within the buffer