@@ -31,6 +31,7 @@ class FrameBuffer;
class FrameBufferAllocator;
class PipelineHandler;
class Request;
+class MetadataListPlan;
class SensorConfiguration
{
@@ -131,6 +132,7 @@ public:
const ControlInfoMap &controls() const;
const ControlList &properties() const;
+ const MetadataListPlan &metadata() const;
const std::set<Stream *> &streams() const;
@@ -18,6 +18,7 @@
#include <libcamera/base/class.h>
#include <libcamera/camera.h>
+#include <libcamera/metadata_list_plan.h>
namespace libcamera {
@@ -40,6 +41,7 @@ public:
std::queue<Request *> waitingRequests_;
ControlInfoMap controlInfo_;
ControlList properties_;
+ MetadataListPlan metadataPlan_;
uint32_t requestSequence_;
@@ -658,6 +658,14 @@ Camera::Private::~Private()
* when creating the camera, and shall not be modified afterwards.
*/
+/**
+ * \var Camera::Private::metadataPlan_
+ * \brief The set of metadata supported by the camera
+ *
+ * The metadata information shall be initialised by the pipeline handler when
+ * creating the camera.
+ */
+
/**
* \var Camera::Private::requestSequence_
* \brief The queuing sequence number of the request
@@ -1074,6 +1082,19 @@ const ControlInfoMap &Camera::controls() const
return _d()->controlInfo_;
}
+/**
+ * \brief Retrieve the set of metadata supported by the camera
+ *
+ * The list of metadata controls that may be reported by the camera
+ * for a \ref Request::metadata() "request".
+ *
+ * \return A MetadataListPlan listing the metadata controls supported by the camera
+ */
+const MetadataListPlan &Camera::metadata() const
+{
+ return _d()->metadataPlan_;
+}
+
/**
* \brief Retrieve the list of properties of the camera
*