mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-13 07:19:45 +03:00
ipa: rkisp1: goc: Mark default gamma table as static constexpr
The values for the default gamma table are stored in an array that is never modified. Mark it as static constexpr to facilitate optimizations. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
1566e67f76
commit
1ca1d06d67
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ void GammaOutCorrection::prepare(IPAContext &context,
|
|||
* The logarithmic segments as specified in the reference.
|
||||
* Plus an additional 0 to make the loop easier
|
||||
*/
|
||||
std::array<unsigned, RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V10> segments = {
|
||||
static constexpr std::array<unsigned int, RKISP1_CIF_ISP_GAMMA_OUT_MAX_SAMPLES_V10> segments = {
|
||||
64, 64, 64, 64, 128, 128, 128, 128, 256,
|
||||
256, 256, 512, 512, 512, 512, 512, 0
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue