[PATCH 10/12] pipeline: rkisp1: Add more debug logging
Stefan Klug
stefan.klug at ideasonboard.com
Wed Mar 13 11:56:43 CET 2024
Signed-off-by: Stefan Klug <stefan.klug at ideasonboard.com>
---
src/ipa/rkisp1/algorithms/agc.cpp | 4 ++--
src/ipa/rkisp1/rkisp1.cpp | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp
index 47a6f7b2..f737ba92 100644
--- a/src/ipa/rkisp1/algorithms/agc.cpp
+++ b/src/ipa/rkisp1/algorithms/agc.cpp
@@ -125,14 +125,14 @@ void Agc::queueRequest(IPAContext &context,
/ context.configuration.sensor.lineDuration;
LOG(RkISP1Agc, Debug)
- << "Set exposure to " << agc.manual.exposure;
+ << "Set manual exposure to " << agc.manual.exposure;
}
const auto &gain = controls.get(controls::AnalogueGain);
if (gain && !agc.autoEnabled) {
agc.manual.gain = *gain;
- LOG(RkISP1Agc, Debug) << "Set gain to " << agc.manual.gain;
+ LOG(RkISP1Agc, Debug) << "Set manual gain to " << agc.manual.gain;
}
frameContext.agc.autoEnabled = agc.autoEnabled;
diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp
index 7f8d3bc1..71db2ae7 100644
--- a/src/ipa/rkisp1/rkisp1.cpp
+++ b/src/ipa/rkisp1/rkisp1.cpp
@@ -313,6 +313,7 @@ void IPARkISP1::unmapBuffers(const std::vector<unsigned int> &ids)
void IPARkISP1::queueRequest(const uint32_t frame, const ControlList &controls)
{
IPAFrameContext &frameContext = context_.frameContexts.alloc(frame);
+ LOG(IPARkISP1, Debug) << "queueRequest: " << frame;
for (auto const &a : algorithms()) {
Algorithm *algo = static_cast<Algorithm *>(a.get());
@@ -353,6 +354,7 @@ void IPARkISP1::processStatsBuffer(const uint32_t frame, const uint32_t bufferId
stats = reinterpret_cast<rkisp1_stat_buffer *>(
mappedBuffers_.at(bufferId).planes()[0].data());
+ LOG(IPARkISP1, Debug) << "processStatsBuffer for frame " << frame;
frameContext.sensor.exposure =
sensorControls.get(V4L2_CID_EXPOSURE).get<int32_t>();
frameContext.sensor.gain =
--
2.40.1
More information about the libcamera-devel
mailing list