From 0ff20bf8c1d21ffbb3694b67756abc59151132cf Mon Sep 17 00:00:00 2001 From: David Plowman Date: Fri, 13 Oct 2023 08:48:38 +0100 Subject: ipa: rpi: contrast: Allow adaptive contrast enhancement to be disabled The enableCe() function enables or disables adaptive contrast enhancement and the restoreCe() function sets it back to its normal state (which is what was read from the tuning file). In future, algorithms like HDR might want to take over tonemapping functions, so any dynamic behaviour here would upset them. Signed-off-by: David Plowman Reviewed-by: Naushir Patuck Reviewed-by: Jacopo Mondi Signed-off-by: Kieran Bingham --- src/ipa/rpi/controller/contrast_algorithm.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ipa/rpi/controller/contrast_algorithm.h') diff --git a/src/ipa/rpi/controller/contrast_algorithm.h b/src/ipa/rpi/controller/contrast_algorithm.h index ce17a4f9..895b36b0 100644 --- a/src/ipa/rpi/controller/contrast_algorithm.h +++ b/src/ipa/rpi/controller/contrast_algorithm.h @@ -17,6 +17,8 @@ public: /* A contrast algorithm must provide the following: */ virtual void setBrightness(double brightness) = 0; virtual void setContrast(double contrast) = 0; + virtual void enableCe(bool enable) = 0; + virtual void restoreCe() = 0; }; } /* namespace RPiController */ -- cgit v1.2.1