libcamera: libipa: camera_sensor: Add Sony IMX214 sensor properties
Provide the Sony IMX214 camera sensor properties and registration with libipa for the gain code helpers. Signed-off-by: André Apitzsch <git@apitzsch.eu> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
0c72c6b4cf
commit
642dbafe64
2 changed files with 23 additions and 0 deletions
|
@ -519,6 +519,19 @@ private:
|
|||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("ar0521", CameraSensorHelperAr0521)
|
||||
|
||||
class CameraSensorHelperImx214 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
CameraSensorHelperImx214()
|
||||
{
|
||||
/* From datasheet: 64 at 10bits. */
|
||||
blackLevel_ = 4096;
|
||||
gainType_ = AnalogueGainLinear;
|
||||
gainConstants_.linear = { 0, 512, -1, 512 };
|
||||
}
|
||||
};
|
||||
REGISTER_CAMERA_SENSOR_HELPER("imx214", CameraSensorHelperImx214)
|
||||
|
||||
class CameraSensorHelperImx219 : public CameraSensorHelper
|
||||
{
|
||||
public:
|
||||
|
|
|
@ -88,6 +88,16 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen
|
|||
*/
|
||||
},
|
||||
} },
|
||||
{ "imx214", {
|
||||
.unitCellSize = { 1120, 1120 },
|
||||
.testPatternModes = {
|
||||
{ controls::draft::TestPatternModeOff, 0 },
|
||||
{ controls::draft::TestPatternModeColorBars, 1 },
|
||||
{ controls::draft::TestPatternModeSolidColor, 2 },
|
||||
{ controls::draft::TestPatternModeColorBarsFadeToGray, 3 },
|
||||
{ controls::draft::TestPatternModePn9, 4 },
|
||||
},
|
||||
} },
|
||||
{ "imx219", {
|
||||
.unitCellSize = { 1120, 1120 },
|
||||
.testPatternModes = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue