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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/controller/contrast_status.h b/src/ipa/raspberrypi/controller/contrast_status.h
index 11d55295..ef2a7c68 100644
--- a/src/ipa/raspberrypi/controller/contrast_status.h
+++ b/src/ipa/raspberrypi/controller/contrast_status.h
@@ -11,7 +11,7 @@
* of contrast stretching based on the AGC histogram.
*/
-#define CONTRAST_NUM_POINTS 33
+constexpr unsigned int ContrastNumPoints = 33;
struct ContrastPoint {
uint16_t x;
@@ -19,7 +19,7 @@ struct ContrastPoint {
};
struct ContrastStatus {
- struct ContrastPoint points[CONTRAST_NUM_POINTS];
+ struct ContrastPoint points[ContrastNumPoints];
double brightness;
double contrast;
};