summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/algorithms/af.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-02 04:31:02 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-27 14:39:44 +0300
commit024d16b7db8f5c56e06e959634b513c3d6d3155f (patch)
tree050a48be07b7048ef66288c76c73c663256fd46c /src/ipa/ipu3/algorithms/af.cpp
parent62a3c7f3fea5adda158cbded032deec825ef3405 (diff)
ipa: ipu3: af: Pass context reference to afIsOutOfFocus()
Avoid copying the whole IPA context by passing a reference to the Af::afIsOutOfFocus() function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/ipa/ipu3/algorithms/af.cpp')
-rw-r--r--src/ipa/ipu3/algorithms/af.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/ipu3/algorithms/af.cpp b/src/ipa/ipu3/algorithms/af.cpp
index 106a7614..9127c24f 100644
--- a/src/ipa/ipu3/algorithms/af.cpp
+++ b/src/ipa/ipu3/algorithms/af.cpp
@@ -383,7 +383,7 @@ double Af::afEstimateVariance(Span<const y_table_item_t> y_items, bool isY1)
* \return True if the variance threshold is crossed indicating lost focus,
* false otherwise
*/
-bool Af::afIsOutOfFocus(IPAContext context)
+bool Af::afIsOutOfFocus(IPAContext &context)
{
const uint32_t diff_var = std::abs(currentVariance_ -
context.activeState.af.maxVariance);