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>
This commit is contained in:
parent
62a3c7f3fe
commit
024d16b7db
2 changed files with 2 additions and 2 deletions
|
@ -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,
|
* \return True if the variance threshold is crossed indicating lost focus,
|
||||||
* false otherwise
|
* false otherwise
|
||||||
*/
|
*/
|
||||||
bool Af::afIsOutOfFocus(IPAContext context)
|
bool Af::afIsOutOfFocus(IPAContext &context)
|
||||||
{
|
{
|
||||||
const uint32_t diff_var = std::abs(currentVariance_ -
|
const uint32_t diff_var = std::abs(currentVariance_ -
|
||||||
context.activeState.af.maxVariance);
|
context.activeState.af.maxVariance);
|
||||||
|
|
|
@ -44,7 +44,7 @@ private:
|
||||||
void afIgnoreFrameReset();
|
void afIgnoreFrameReset();
|
||||||
double afEstimateVariance(Span<const y_table_item_t> y_items, bool isY1);
|
double afEstimateVariance(Span<const y_table_item_t> y_items, bool isY1);
|
||||||
|
|
||||||
bool afIsOutOfFocus(IPAContext context);
|
bool afIsOutOfFocus(IPAContext &context);
|
||||||
|
|
||||||
/* VCM step configuration. It is the current setting of the VCM step. */
|
/* VCM step configuration. It is the current setting of the VCM step. */
|
||||||
uint32_t focus_;
|
uint32_t focus_;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue