summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/contrast_status.h
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2024-03-29 21:44:29 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2024-06-12 16:53:00 +0900
commit9fcc0029ec7bc8c10bc318fc5828c4b5a2efd461 (patch)
tree3a92757706de91208e559eca337cbed281407b98 /src/ipa/rpi/controller/contrast_status.h
parent95fa5c40ba7f0f947e1db3e0fe25134f5175bca7 (diff)
ipa: rpi: controller: Use libipa's Pwl class
To reduce code duplication, use the Pwl class from libipa. This also removes the Pwl class from the Raspberry Pi IPA. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Acked-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/rpi/controller/contrast_status.h')
-rw-r--r--src/ipa/rpi/controller/contrast_status.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/rpi/controller/contrast_status.h b/src/ipa/rpi/controller/contrast_status.h
index 7c67f054..1f175872 100644
--- a/src/ipa/rpi/controller/contrast_status.h
+++ b/src/ipa/rpi/controller/contrast_status.h
@@ -6,7 +6,7 @@
*/
#pragma once
-#include "pwl.h"
+#include "libipa/pwl.h"
/*
* The "contrast" algorithm creates a gamma curve, optionally doing a little bit
@@ -14,7 +14,7 @@
*/
struct ContrastStatus {
- RPiController::Pwl gammaCurve;
+ libcamera::ipa::Pwl gammaCurve;
double brightness;
double contrast;
};