summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/contrast_status.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/raspberrypi/controller/contrast_status.h')
-rw-r--r--src/ipa/raspberrypi/controller/contrast_status.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ipa/raspberrypi/controller/contrast_status.h b/src/ipa/raspberrypi/controller/contrast_status.h
index ef2a7c68..fb9fe4ba 100644
--- a/src/ipa/raspberrypi/controller/contrast_status.h
+++ b/src/ipa/raspberrypi/controller/contrast_status.h
@@ -6,20 +6,15 @@
*/
#pragma once
+#include "pwl.h"
+
/*
* The "contrast" algorithm creates a gamma curve, optionally doing a little bit
* of contrast stretching based on the AGC histogram.
*/
-constexpr unsigned int ContrastNumPoints = 33;
-
-struct ContrastPoint {
- uint16_t x;
- uint16_t y;
-};
-
struct ContrastStatus {
- struct ContrastPoint points[ContrastNumPoints];
+ RPiController::Pwl gammaCurve;
double brightness;
double contrast;
};