summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/rpi/geq.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/rpi/geq.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/rpi/geq.h')
-rw-r--r--src/ipa/rpi/controller/rpi/geq.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ipa/rpi/controller/rpi/geq.h b/src/ipa/rpi/controller/rpi/geq.h
index 2c8400c2..e8b9f427 100644
--- a/src/ipa/rpi/controller/rpi/geq.h
+++ b/src/ipa/rpi/controller/rpi/geq.h
@@ -6,6 +6,8 @@
*/
#pragma once
+#include <libipa/pwl.h>
+
#include "../algorithm.h"
#include "../geq_status.h"
@@ -16,7 +18,7 @@ namespace RPiController {
struct GeqConfig {
uint16_t offset;
double slope;
- Pwl strength; /* lux to strength factor */
+ libcamera::ipa::Pwl strength; /* lux to strength factor */
};
class Geq : public Algorithm