From 9366dd6d124b07b60f853ef72930e4ca210fa000 Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Tue, 15 Mar 2022 16:39:16 +0000 Subject: ipa: ipu3: af: Remove redundant memcpy The af statistics can be accessed directly from the mapped buffer. Remove the redundant memcpy, and simplify the call to afEstimateVariance(). Reviewed-by: Laurent Pinchart Reviewed-by: Jean-Michel Hautbois Tested-by: Jean-Michel Hautbois Tested-by: Kate Hsuan Signed-off-by: Kieran Bingham --- src/ipa/ipu3/algorithms/af.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (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 906f2843..3b5758e8 100644 --- a/src/ipa/ipu3/algorithms/af.h +++ b/src/ipa/ipu3/algorithms/af.h @@ -41,7 +41,7 @@ private: void afReset(IPAContext &context); bool afNeedIgnoreFrame(); void afIgnoreFrameReset(); - double afEstimateVariance(y_table_item_t *y_item, uint32_t len, + double afEstimateVariance(const y_table_item_t *y_item, uint32_t len, bool isY1); bool afIsOutOfFocus(IPAContext context); -- cgit v1.2.1