diff options
author | Geoffrey Van Landeghem <geoffrey.vl@gmail.com> | 2024-11-24 20:29:50 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2024-11-25 11:40:51 +0100 |
commit | 357dbc9f0e6d0e26f27553c2955cf580bc030394 (patch) | |
tree | d6867763ee9f86d92cc9af27b954ac6f472f3e5c /src/ipa/libipa/camera_sensor_helper.cpp | |
parent | b45ff9ff3c00dd626db5d6e0fc06bcc9191e2854 (diff) |
libcamera: libipa: camera_sensor_helper: add IMX290 black level
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@gmail.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Diffstat (limited to 'src/ipa/libipa/camera_sensor_helper.cpp')
-rw-r--r-- | src/ipa/libipa/camera_sensor_helper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index f870dc28..a0a5437a 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) }; } |