From 2f7a52df95e64679c4d0f1b009ed354bbd067c5b Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 23 Mar 2022 13:19:14 +0000 Subject: 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 Reviewed-by: Jean-Michel Hautbois Tested-by: Jean-Michel Hautbois Tested-by: Kate Hsuan Reviewed-by: Laurent Pinchart --- src/ipa/ipu3/algorithms/af.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ipa/ipu3/algorithms/af.h') 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 y_items, bool isY1); + bool afIsOutOfFocus(IPAContext context); /* VCM step configuration. It is the current setting of the VCM step. */ -- cgit v1.2.1