[PATCH] libcamera: libipa: camera_sensor: Add IMX283 black level

Kieran Bingham kieran.bingham at ideasonboard.com
Thu Aug 8 18:57:01 CEST 2024


Configure the default sensor black level reported by the datasheet.

Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 src/ipa/libipa/camera_sensor_helper.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp
index c07b1a8dcaec..039109f9540d 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -549,6 +549,8 @@ class CameraSensorHelperImx283 : public CameraSensorHelper
 public:
 	CameraSensorHelperImx283()
 	{
+		/* From datasheet: 0x32 at 10bits. */
+		blackLevel_ = 3200;
 		gainType_ = AnalogueGainLinear;
 		gainConstants_.linear = { 0, 2048, -1, 2048 };
 	}
-- 
2.34.1



More information about the libcamera-devel mailing list