From 5d81e666dc90278e524a34bdddc9f8d5f67d5102 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Thu, 3 Oct 2024 14:35:32 +0200 Subject: Emit when configuring Signed-off-by: Jacopo Mondi --- src/libcamera/pipeline_handler.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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 #include +#include "libcamera/base/file.h" #include #include #include @@ -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 &streams, const Orientation &orientation) { + std::string path("/tmp/yaml_emitter.yaml"); + auto emitter = YamlEmitter::create(path); + std::map map = { { "cane", "gatto" }, }; + emitter->emit(map); + if (!dumpCaptureScript_) return; -- cgit v1.2.1