diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2023-02-24 00:16:46 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2023-02-24 15:06:38 +0000 |
commit | dacf0ef84cf3358473c9b6f22e78aa81d0506d31 (patch) | |
tree | 9ffbd304fcff4a7cd34703748496fb4231039899 | |
parent | 06d7dbbfa78ade0319517559d79ff95963ba8bda (diff) |
ipa: libipa: Add OV5695 Camera Sensor Helper
Provide a CameraSensorHelper for the OV5695, along with the
corresponding camera sensor properties.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r-- | src/ipa/libipa/camera_sensor_helper.cpp | 11 | ||||
-rw-r--r-- | src/libcamera/camera_sensor_properties.cpp | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/src/ipa/libipa/camera_sensor_helper.cpp b/src/ipa/libipa/camera_sensor_helper.cpp index d1051cc2..a38fefc7 100644 --- a/src/ipa/libipa/camera_sensor_helper.cpp +++ b/src/ipa/libipa/camera_sensor_helper.cpp @@ -527,6 +527,17 @@ public: }; REGISTER_CAMERA_SENSOR_HELPER("ov5693", CameraSensorHelperOv5693) +class CameraSensorHelperOv5695 : public CameraSensorHelper +{ +public: + CameraSensorHelperOv5695() + { + gainType_ = AnalogueGainLinear; + gainConstants_.linear = { 1, 0, 0, 128 }; + } +}; +REGISTER_CAMERA_SENSOR_HELPER("ov5695", CameraSensorHelperOv5695) + class CameraSensorHelperOv8858 : public CameraSensorHelper { public: diff --git a/src/libcamera/camera_sensor_properties.cpp b/src/libcamera/camera_sensor_properties.cpp index 7652c5f3..a92c13b8 100644 --- a/src/libcamera/camera_sensor_properties.cpp +++ b/src/libcamera/camera_sensor_properties.cpp @@ -204,6 +204,14 @@ const CameraSensorProperties *CameraSensorProperties::get(const std::string &sen */ }, } }, + { "ov5695", { + .unitCellSize = { 1400, 1400 }, + .testPatternModes = { + { controls::draft::TestPatternModeOff, 0 }, + { controls::draft::TestPatternModeColorBars, 2 }, + { controls::draft::TestPatternModeColorBarsFadeToGray, 4}, + }, + } }, { "ov8858", { .unitCellSize = { 1120, 1120 }, .testPatternModes = { |