summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/algorithms/af.h
diff options
context:
space:
mode:
authorKieran Bingham <kieran.bingham@ideasonboard.com>2022-03-23 13:19:14 +0000
committerKieran Bingham <kieran.bingham@ideasonboard.com>2022-04-09 21:00:47 +0200
commit2f7a52df95e64679c4d0f1b009ed354bbd067c5b (patch)
tree714b5a3bc8a1dcc95b0f7d9bdd329c50b1d7c94b /src/ipa/ipu3/algorithms/af.h
parent9366dd6d124b07b60f853ef72930e4ca210fa000 (diff)
ipa: ipu3: af: Use Span for y_table_item_t
Convert the y_table_item_t to a Span and use that for iteration when estimating variance of the table. Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Tested-by: Kate Hsuan <hpa@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/algorithms/af.h')
-rw-r--r--src/ipa/ipu3/algorithms/af.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/ipu3/algorithms/af.h b/src/ipa/ipu3/algorithms/af.h
index 3b5758e8..b85cf941 100644
--- a/src/ipa/ipu3/algorithms/af.h
+++ b/src/ipa/ipu3/algorithms/af.h
@@ -41,8 +41,8 @@ private:
void afReset(IPAContext &context);
bool afNeedIgnoreFrame();
void afIgnoreFrameReset();
- double afEstimateVariance(const y_table_item_t *y_item, uint32_t len,
- bool isY1);
+ double afEstimateVariance(Span<const y_table_item_t> y_items, bool isY1);
+
bool afIsOutOfFocus(IPAContext context);
/* VCM step configuration. It is the current setting of the VCM step. */