mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 23:39:44 +03:00
libipa: camera_sensor_helper: Add OV5675 black level
Add black level value for OV5675 camera sensor. According to datasheet, default value is 0x10, 10 bits width. However, Linux kernel driver initializes black level target value to 0x40. Set the value to the same as in kernel driver, but scaled to 16 bits. Signed-off-by: Daniel Semkowicz <dse@thaumatec.com> Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
71aa3ceec3
commit
7ee9ef451d
1 changed files with 2 additions and 0 deletions
|
@ -601,6 +601,8 @@ class CameraSensorHelperOv5675 : public CameraSensorHelper
|
||||||
public:
|
public:
|
||||||
CameraSensorHelperOv5675()
|
CameraSensorHelperOv5675()
|
||||||
{
|
{
|
||||||
|
/* From Linux kernel driver: 0x40 at 10bits. */
|
||||||
|
blackLevel_ = 4096;
|
||||||
gainType_ = AnalogueGainLinear;
|
gainType_ = AnalogueGainLinear;
|
||||||
gainConstants_.linear = { 1, 0, 0, 128 };
|
gainConstants_.linear = { 1, 0, 0, 128 };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue