mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-14 16:09:51 +03:00
libipa: Add CameraSensorHelper for OV2740
The datasheet for the OV2740 gives 0x80 as 1x gain, so real gain is GainCode / 128. Signed-off-by: Daniel Scally <djrscally@gmail.com> Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
a42c00e01e
commit
f0bfb2f19e
1 changed files with 10 additions and 0 deletions
|
@ -305,6 +305,16 @@ public:
|
|||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("imx258", CameraSensorHelperImx258)
|
||||
|
||||
class CameraSensorHelperOv2740 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
CameraSensorHelperOv2740()
|
||||
{
|
||||
analogueGainConstants_ = { AnalogueGainLinear, 1, 0, 0, 128 };
|
||||
}
|
||||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("ov2740", CameraSensorHelperOv2740)
|
||||
|
||||
class CameraSensorHelperOv5670 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue