[v3,41/41] ipa: rkisp1: Increase regulation speed
diff mbox series

Message ID 20260914140309.3354666-42-stefan.klug@ideasonboard.com
State New
Headers show
Series
  • rkisp1: pipeline rework for PFC
Related show

Commit Message

Stefan Klug Sept. 14, 2026, 2:02 p.m. UTC
Now that the rkisp1 is well synchronized, we can safely increase the
regulation speed and reduce the number of startup frames.  With current
settings, the results based on the stats for frame 0 are active on frame
5. Setting the startup frames to 7 leaves room for one additional lost
frame.

While at it, format the code in a checkstyle compatible way.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
 src/ipa/rkisp1/algorithms/agc.cpp | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Patch
diff mbox series

diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp
index 41680e5c4ffd..0c1ad3b6c525 100644
--- a/src/ipa/rkisp1/algorithms/agc.cpp
+++ b/src/ipa/rkisp1/algorithms/agc.cpp
@@ -137,11 +137,13 @@  int Agc::init(IPAContext &context, const ValueNode &tuningData)
 {
 	int ret;
 
-	ret = agc_.init(tuningData, context.camHelper.get(), {
-		.sensorInfo = context.sensorInfo,
-		.sensorControls = context.sensorControls,
-		.ctrlMap = context.ctrlMap,
-	});
+	ret = agc_.init(tuningData, context.camHelper.get(),
+			{ .sensorInfo = context.sensorInfo,
+			  .sensorControls = context.sensorControls,
+			  .ctrlMap = context.ctrlMap,
+			  /* rkisp1 is well synchronized, increase the speed. */
+			  .numStartupFrames = 7,
+			  .regulationSpeed = 0.6 });
 	if (ret)
 		return ret;