summaryrefslogtreecommitdiff
path: root/src/ipa/rkisp1/algorithms/lsc.h
diff options
context:
space:
mode:
authorFlorian Sylvestre <fsylvestre@baylibre.com>2022-10-03 16:23:56 +0200
committerPaul Elder <paul.elder@ideasonboard.com>2022-11-03 17:55:02 +0900
commitaa7b374054c72fbde584f8afb1cc2886a46a57e1 (patch)
treefe259062886c009b1c255b14852255a186367916 /src/ipa/rkisp1/algorithms/lsc.h
parent375a70d43eaa30e0c4f59f3da209a0f9fdf2b889 (diff)
ipa: rkisp1: Compute LSC algorithm parameter during configure
LSC gradient parameters are currently computed during prepare() phase. Because these parameters can be computed only one time and stay constant for each frame after, move the computation to the configure() function. Signed-off-by: Florian Sylvestre <fsylvestre@baylibre.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/ipa/rkisp1/algorithms/lsc.h')
-rw-r--r--src/ipa/rkisp1/algorithms/lsc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ipa/rkisp1/algorithms/lsc.h b/src/ipa/rkisp1/algorithms/lsc.h
index 6c052669..da81ea53 100644
--- a/src/ipa/rkisp1/algorithms/lsc.h
+++ b/src/ipa/rkisp1/algorithms/lsc.h
@@ -33,6 +33,10 @@ private:
std::vector<double> xSize_;
std::vector<double> ySize_;
+ uint16_t xGrad_[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE];
+ uint16_t yGrad_[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE];
+ uint16_t xSizes_[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE];
+ uint16_t ySizes_[RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE];
};
} /* namespace ipa::rkisp1::algorithms */