libcamera: libipa: camera_sensor: Add Sony IMX415 sensor properties

Provide the Sony IMX415 camera sensor properties and registration
with libipa for the gain code helpers.

The test patterns exposed by the IMX415 do not map well to the current
set of test pattern controls supplied by libcamera. These are left
intentionally unimplemented.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Alexander Stein 2024-05-03 14:44:20 +02:00 committed by Laurent Pinchart
parent 77269a2869
commit 7235248d38
2 changed files with 15 additions and 0 deletions

View file

@ -466,6 +466,17 @@ public:
}; };
REGISTER_CAMERA_SENSOR_HELPER("imx335", CameraSensorHelperImx335) REGISTER_CAMERA_SENSOR_HELPER("imx335", CameraSensorHelperImx335)
class CameraSensorHelperImx415 : public CameraSensorHelper
{
public:
CameraSensorHelperImx415()
{
gainType_ = AnalogueGainExponential;
gainConstants_.exp = { 1.0, expGainDb(0.3) };
}
};
REGISTER_CAMERA_SENSOR_HELPER("imx415", CameraSensorHelperImx415)
class CameraSensorHelperImx477 : public CameraSensorHelper class CameraSensorHelperImx477 : public CameraSensorHelper
{ {
public: public:

View file

@ -119,6 +119,10 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
.unitCellSize = { 2000, 2000 }, .unitCellSize = { 2000, 2000 },
.testPatternModes = {}, .testPatternModes = {},
} }, } },
{ "imx415", {
.unitCellSize = { 1450, 1450 },
.testPatternModes = {},
} },
{ "imx477", { { "imx477", {
.unitCellSize = { 1550, 1550 }, .unitCellSize = { 1550, 1550 },
.testPatternModes = {}, .testPatternModes = {},