ipa: ipu3: Register algorithms

To prepare for dynamic instantiation of algorithms from the tuning file,
register the algorithms with the Module class.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
Laurent Pinchart 2022-08-02 03:37:31 +03:00
parent 639d14e5d3
commit d1ea82aff9
5 changed files with 10 additions and 0 deletions

View file

@ -450,6 +450,8 @@ void Af::process(IPAContext &context, [[maybe_unused]] IPAFrameContext *frameCon
} }
} }
REGISTER_IPA_ALGORITHM(Af, "Af")
} /* namespace ipa::ipu3::algorithms */ } /* namespace ipa::ipu3::algorithms */
} /* namespace libcamera */ } /* namespace libcamera */

View file

@ -363,6 +363,8 @@ void Agc::process(IPAContext &context, [[maybe_unused]] IPAFrameContext *frameCo
frameCount_++; frameCount_++;
} }
REGISTER_IPA_ALGORITHM(Agc, "Agc")
} /* namespace ipa::ipu3::algorithms */ } /* namespace ipa::ipu3::algorithms */
} /* namespace libcamera */ } /* namespace libcamera */

View file

@ -483,6 +483,8 @@ void Awb::prepare(IPAContext &context, ipu3_uapi_params *params)
params->use.acc_ccm = 1; params->use.acc_ccm = 1;
} }
REGISTER_IPA_ALGORITHM(Awb, "Awb")
} /* namespace ipa::ipu3::algorithms */ } /* namespace ipa::ipu3::algorithms */
} /* namespace libcamera */ } /* namespace libcamera */

View file

@ -62,6 +62,8 @@ void BlackLevelCorrection::prepare([[maybe_unused]] IPAContext &context,
params->use.obgrid_param = 1; params->use.obgrid_param = 1;
} }
REGISTER_IPA_ALGORITHM(BlackLevelCorrection, "BlackLevelCorrection")
} /* namespace ipa::ipu3::algorithms */ } /* namespace ipa::ipu3::algorithms */
} /* namespace libcamera */ } /* namespace libcamera */

View file

@ -105,6 +105,8 @@ void ToneMapping::process(IPAContext &context, [[maybe_unused]] IPAFrameContext
context.activeState.toneMapping.gamma = gamma_; context.activeState.toneMapping.gamma = gamma_;
} }
REGISTER_IPA_ALGORITHM(ToneMapping, "ToneMapping")
} /* namespace ipa::ipu3::algorithms */ } /* namespace ipa::ipu3::algorithms */
} /* namespace libcamera */ } /* namespace libcamera */