summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-03 14:35:32 +0200
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2024-10-04 11:17:20 +0200
commit5d81e666dc90278e524a34bdddc9f8d5f67d5102 (patch)
treed6c91a5b8b5ffefe15f906c5e20db72338624407
parent5a6eb4855506086caf73c2e8673a1aa27c400669 (diff)
Emit when configuring
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
-rw-r--r--src/libcamera/pipeline_handler.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp
index 7002b432..5fd55edb 100644
--- a/src/libcamera/pipeline_handler.cpp
+++ b/src/libcamera/pipeline_handler.cpp
@@ -12,6 +12,7 @@
#include <sys/stat.h>
#include <sys/sysmacros.h>
+#include "libcamera/base/file.h"
#include <libcamera/base/log.h>
#include <libcamera/base/mutex.h>
#include <libcamera/base/utils.h>
@@ -27,6 +28,8 @@
#include "libcamera/internal/request.h"
#include "libcamera/internal/tracepoints.h"
+#include "libcamera/internal/yaml_emitter.h"
+
/**
* \file pipeline_handler.h
* \brief Create pipelines and cameras from a set of media devices
@@ -788,6 +791,11 @@ void PipelineHandler::disconnect()
void PipelineHandler::dumpConfiguration(const std::set<const Stream *> &streams,
const Orientation &orientation)
{
+ std::string path("/tmp/yaml_emitter.yaml");
+ auto emitter = YamlEmitter::create(path);
+ std::map<std::string, std::string> map = { { "cane", "gatto" }, };
+ emitter->emit(map);
+
if (!dumpCaptureScript_)
return;