[PATCH v3 5/5] libcamera: libipa: camera_sensor_helper: add IMX290 black level
Geoffrey Van Landeghem
geoffrey.vl at gmail.com
Sun Nov 24 20:29:50 CET 2024
Report the default sensor black level reported by the datasheet.
Note that IMX327 and IMX462 depend on the IMX290 CameraSensorHelper.
That's fine since those sensors report the same defaults for the
black level as the Sony IMX290.
Signed-off-by: Geoffrey Van Landeghem <geoffrey.vl at gmail.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 f870dc28..07657700 100644
--- a/src/ipa/libipa/camera_sensor_helper.cpp
+++ b/src/ipa/libipa/camera_sensor_helper.cpp
@@ -576,6 +576,8 @@ class CameraSensorHelperImx290 : public CameraSensorHelper
public:
CameraSensorHelperImx290()
{
+ /* From datasheet: 0xF0 at 12bits. */
+ blackLevel_ = 3840;
gainType_ = AnalogueGainExponential;
gainConstants_.exp = { 1.0, expGainDb(0.3) };
}
--
2.43.0
More information about the libcamera-devel
mailing list