Files
external_libcamera/src/ipa/raspberrypi/controller/alsc_status.h
T
Naushir Patuck d1c89a1824 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>
2022-07-27 18:12:18 +03:00

22 lines
507 B
C++

/* SPDX-License-Identifier: BSD-2-Clause */
/*
* Copyright (C) 2019, Raspberry Pi Ltd
*
* alsc_status.h - ALSC (auto lens shading correction) control algorithm status
*/
#pragma once
/*
* The ALSC algorithm should post the following structure into the image's
* "alsc.status" metadata.
*/
constexpr unsigned int AlscCellsX = 16;
constexpr unsigned int AlscCellsY = 12;
struct AlscStatus {
double r[AlscCellsY][AlscCellsX];
double g[AlscCellsY][AlscCellsX];
double b[AlscCellsY][AlscCellsX];
};