[libcamera-devel] [PATCH 12/14] libcamera: pipeline: simple: Load a converter configuration file (if any)
Xavier Roumegue
xavier.roumegue at oss.nxp.com
Thu Sep 8 20:48:48 CEST 2022
Signed-off-by: Xavier Roumegue <xavier.roumegue at oss.nxp.com>
---
src/libcamera/pipeline/simple/simple.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
index a5970234..31d10c56 100644
--- a/src/libcamera/pipeline/simple/simple.cpp
+++ b/src/libcamera/pipeline/simple/simple.cpp
@@ -498,6 +498,14 @@ int SimpleCameraData::init()
<< "Failed to create converter, disabling format conversion";
converter_.reset();
} else {
+ char const *configFromEnv = utils::secure_getenv("LIBCAMERA_SIMPLE_CONVERTER_FILE");
+
+ if (configFromEnv && *configFromEnv != '\0') {
+ LOG(SimplePipeline, Debug)
+ << "Getting simple converter filename as " << std::string(configFromEnv);
+ converter_->loadConfiguration(std::string(configFromEnv));
+ }
+
converter_->inputBufferReady.connect(this, &SimpleCameraData::converterInputDone);
converter_->outputBufferReady.connect(this, &SimpleCameraData::converterOutputDone);
}
--
2.37.3
More information about the libcamera-devel
mailing list