@@ -17,6 +17,7 @@
#include <libcamera/base/class.h>
#include <libcamera/camera.h>
+#include <libcamera/metadata_list_plan.h>
namespace libcamera {
@@ -41,6 +42,8 @@ public:
uint32_t requestSequence_;
+ MetadataListPlan metadataPlan_;
+
const CameraControlValidator *validator() const { return validator_.get(); }
private:
@@ -660,6 +660,14 @@ Camera::Private::~Private()
* over a single capture session.
*/
+/**
+ * \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.
+ */
+
static const char *const camera_state_names[] = {
"Available",
"Acquired",
Just like `ControlInfoMap controlInfo_` is a public member of the private camera data for pipeline handlers to populate, add a `MetadataListPlan` as well for the pipeline handlers to fill. This will be used to initialize the `MetadataList` of each request created by the camera. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- include/libcamera/internal/camera.h | 3 +++ src/libcamera/camera.cpp | 8 ++++++++ 2 files changed, 11 insertions(+)