libipa: camera_sensor_helper: Add imx708
The imx708 sensor driver has long been available, especially in raspberry pi kernels; and the raspberry pi ipa module has had the corresponding helper class since 2023 (952ef94ed7). The camera sensor properties database also has an entry for it (2fb0f25019), but the camera sensor helper class is missing from the common libipa component. So add it, with the same gain formula present in the raspberry pi ipa module, and the black level taken from the rpi tuning files. Handling the raspberry pi specific "wide" / "noir" suffixes is omitted. They are not present in the camera sensor properties database either. Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com> [Add black level, extend commit message.] Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
committed by
Kieran Bingham
parent
94d32fdc55
commit
6a393789f3
@@ -642,6 +642,17 @@ public:
|
||||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("imx477", CameraSensorHelperImx477)
|
||||
|
||||
class CameraSensorHelperImx708 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
CameraSensorHelperImx708()
|
||||
{
|
||||
blackLevel_ = 4096;
|
||||
gain_ = AnalogueGainLinear{ 0, 1024, -1, 1024 };
|
||||
}
|
||||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("imx708", CameraSensorHelperImx708)
|
||||
|
||||
class CameraSensorHelperOv2685 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user