summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/rpi/contrast.h
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2023-10-13 08:48:38 +0100
committerKieran Bingham <kieran.bingham@ideasonboard.com>2023-10-18 11:01:23 +0100
commit0ff20bf8c1d21ffbb3694b67756abc59151132cf (patch)
tree8654dd1b72fcec8654ac605352297221311a41a6 /src/ipa/rpi/controller/rpi/contrast.h
parent9c90e56733311a1cdabf2554e3b82f7e177e735d (diff)
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 <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/controller/rpi/contrast.h')
-rw-r--r--src/ipa/rpi/controller/rpi/contrast.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ipa/rpi/controller/rpi/contrast.h b/src/ipa/rpi/controller/rpi/contrast.h
index 9c81277a..59aa70dc 100644
--- a/src/ipa/rpi/controller/rpi/contrast.h
+++ b/src/ipa/rpi/controller/rpi/contrast.h
@@ -37,6 +37,8 @@ public:
int read(const libcamera::YamlObject &params) override;
void setBrightness(double brightness) override;
void setContrast(double contrast) override;
+ void enableCe(bool enable) override;
+ void restoreCe() override;
void initialise() override;
void prepare(Metadata *imageMetadata) override;
void process(StatisticsPtr &stats, Metadata *imageMetadata) override;
@@ -46,6 +48,7 @@ private:
double brightness_;
double contrast_;
ContrastStatus status_;
+ double ceEnable_;
};
} /* namespace RPiController */