diff options
author | Naushir Patuck <naush@raspberrypi.com> | 2022-07-27 09:55:23 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-07-27 18:12:18 +0300 |
commit | d1c89a1824416a03da10ebd078869cba79b6015c (patch) | |
tree | 4152532504e20902e519027bea3f05ed24a92156 /src/ipa/raspberrypi/controller/rpi/alsc.cpp | |
parent | 8757cc7c4291420e94047ea54a735cbaa1eb6adb (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/rpi/alsc.cpp')
-rw-r--r-- | src/ipa/raspberrypi/controller/rpi/alsc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/controller/rpi/alsc.cpp b/src/ipa/raspberrypi/controller/rpi/alsc.cpp index 7df89445..03ae3350 100644 --- a/src/ipa/raspberrypi/controller/rpi/alsc.cpp +++ b/src/ipa/raspberrypi/controller/rpi/alsc.cpp @@ -23,8 +23,8 @@ LOG_DEFINE_CATEGORY(RPiAlsc) #define NAME "rpi.alsc" -static const int X = ALSC_CELLS_X; -static const int Y = ALSC_CELLS_Y; +static const int X = AlscCellsX; +static const int Y = AlscCellsY; static const int XY = X * Y; static const double InsufficientData = -1.0; |