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>
This commit is contained in:
parent
8757cc7c42
commit
d1c89a1824
10 changed files with 41 additions and 43 deletions
|
@ -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];
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue