diff options
-rw-r--r-- | src/libcamera/pipeline_handler.cpp | 8 |
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; |