summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1/algorithms/agc.cpp
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2022-01-28 20:13:23 +0900
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-03-08 13:18:10 +0100
commitebe733ed985eaea8f74dcfdd3cea860501b10763 (patch)
tree14cbc2d715f560387e5164d2c37645517bf3b493 /src/ipa/rkisp1/algorithms/agc.cpp
parentcde9293cf9899b0fc4ce9cf89dd29f26be77f35c (diff)
[WIP] ipa: rkisp1: Support the i.MX8MP ISP
Handle the i.MX8MP version of the ISP. This matches the current versioning scheme of the driver, but doesn't seem to scale very well.
Diffstat (limited to 'src/ipa/rkisp1/algorithms/agc.cpp')
-rw-r--r--src/ipa/rkisp1/algorithms/agc.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipa/rkisp1/algorithms/agc.cpp b/src/ipa/rkisp1/algorithms/agc.cpp
index 22f70aba..4c702576 100644
--- a/src/ipa/rkisp1/algorithms/agc.cpp
+++ b/src/ipa/rkisp1/algorithms/agc.cpp
@@ -94,12 +94,12 @@ int Agc::configure(IPAContext &context, const IPACameraSensorInfo &configInfo)
* - versions < V12 have RKISP1_CIF_ISP_AE_MEAN_MAX_V10 entries,
* - versions >= V12 have RKISP1_CIF_ISP_AE_MEAN_MAX_V12 entries.
*/
- if (context.configuration.hw.revision < RKISP1_V12) {
- numCells_ = RKISP1_CIF_ISP_AE_MEAN_MAX_V10;
- numHistBins_ = RKISP1_CIF_ISP_HIST_BIN_N_MAX_V10;
- } else {
+ if (context.configuration.hw.revision == RKISP1_V12) {
numCells_ = RKISP1_CIF_ISP_AE_MEAN_MAX_V12;
numHistBins_ = RKISP1_CIF_ISP_HIST_BIN_N_MAX_V12;
+ } else {
+ numCells_ = RKISP1_CIF_ISP_AE_MEAN_MAX_V10;
+ numHistBins_ = RKISP1_CIF_ISP_HIST_BIN_N_MAX_V10;
}
/*