libcamera: libipa: camera_sensor: Add Sony IMX335 sensor properties

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

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

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Umang Jain <umang.jain@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Kieran Bingham 2024-04-26 18:55:16 +05:30 committed by Umang Jain
parent 2ac544cfd6
commit 6b1b2bd7ea
2 changed files with 15 additions and 0 deletions

View file

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

View file

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