summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-06-12 00:14:27 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-06-12 12:00:33 +0300
commit1ca1d06d67c1bb1518ce5a96e49fb1cdf64d940b (patch)
tree2977c13cb790379b72c1eb562dcc9dd43ab2a6bc
parent1566e67f76e949edddc03a34971ed45bee1ab4a6 (diff)
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>
-rw-r--r--src/ipa/rkisp1/algorithms/goc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/rkisp1/algorithms/goc.cpp b/src/ipa/rkisp1/algorithms/goc.cpp
index 65460eb4..e98c9526 100644
--- a/src/ipa/rkisp1/algorithms/goc.cpp
+++ b/src/ipa/rkisp1/algorithms/goc.cpp
@@ -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
};