summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/common/ipa_base.h
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2023-06-05 09:26:05 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2023-06-05 11:40:31 +0300
commita0271e72a86da5796891795565f43f20f7024a8d (patch)
treee097285a4c70d3167c814df487241ebec3e3b5f7 /src/ipa/rpi/common/ipa_base.h
parent54340ef70f7ece5354dd4b62cecf833da400fdd9 (diff)
ipa: rpi: Handle controls for mono variant sensors
Do not advertise colour related controls (i.e. [A]WB, colour saturation) in the ControlInfoMap of available controls returned out to the application. Silently ignore these controls in the control handler in case applications don't use the advertised ControlInfoMap to validate controls. As a drive-by fix, don't advertise controls::ColourCorrectionMatrix in the ControlInfoMap as it is not handled by the IPA. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/common/ipa_base.h')
-rw-r--r--src/ipa/rpi/common/ipa_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ipa/rpi/common/ipa_base.h b/src/ipa/rpi/common/ipa_base.h
index 6f9c46bb..39d00760 100644
--- a/src/ipa/rpi/common/ipa_base.h
+++ b/src/ipa/rpi/common/ipa_base.h
@@ -87,6 +87,7 @@ private:
std::map<unsigned int, MappedFrameBuffer> buffers_;
bool lensPresent_;
+ bool monoSensor_;
ControlList libcameraMetadata_;
std::array<RPiController::Metadata, numMetadataContexts> rpiMetadata_;