summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/libcamera/buffer.h1
-rw-r--r--src/libcamera/buffer.cpp6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/libcamera/buffer.h b/include/libcamera/buffer.h
index c349b995..80602124 100644
--- a/include/libcamera/buffer.h
+++ b/include/libcamera/buffer.h
@@ -40,6 +40,7 @@ private:
class BufferMemory final
{
public:
+ const std::vector<Plane> &planes() const { return planes_; }
std::vector<Plane> &planes() { return planes_; }
private:
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