summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/controller/alsc_status.h
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2022-07-27 09:55:23 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-07-27 18:12:18 +0300
commitd1c89a1824416a03da10ebd078869cba79b6015c (patch)
tree4152532504e20902e519027bea3f05ed24a92156 /src/ipa/raspberrypi/controller/alsc_status.h
parent8757cc7c4291420e94047ea54a735cbaa1eb6adb (diff)
ipa: raspberrypi: Remove #define constants
Replace all #define constant values with equivalent constexpr definitions. As a drive-by, remove the CAMERA_MODE_NAME_LEN constant as it is unused. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/alsc_status.h')
-rw-r--r--src/ipa/raspberrypi/controller/alsc_status.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ipa/raspberrypi/controller/alsc_status.h b/src/ipa/raspberrypi/controller/alsc_status.h
index 498880da..e5aa7e37 100644
--- a/src/ipa/raspberrypi/controller/alsc_status.h
+++ b/src/ipa/raspberrypi/controller/alsc_status.h
@@ -11,11 +11,11 @@
* "alsc.status" metadata.
*/
-#define ALSC_CELLS_X 16
-#define ALSC_CELLS_Y 12
+constexpr unsigned int AlscCellsX = 16;
+constexpr unsigned int AlscCellsY = 12;
struct AlscStatus {
- double r[ALSC_CELLS_Y][ALSC_CELLS_X];
- double g[ALSC_CELLS_Y][ALSC_CELLS_X];
- double b[ALSC_CELLS_Y][ALSC_CELLS_X];
+ double r[AlscCellsY][AlscCellsX];
+ double g[AlscCellsY][AlscCellsX];
+ double b[AlscCellsY][AlscCellsX];
};