ipa: rkisp1: Remove initialized_ flags from algorithms
Multiple algorithms have an initialized_ flag that they set to true at the end of the init() function, and check at the beginning of prepare() to skip preparation. This serves no real purpose, as the flag can only be false if init() fails, in which case the IPA module initialization as a whole will fail. Drop the initialized_ flags. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jacopo Mondi <jacopo@jmondi.org> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
c97cf467ea
commit
79f0fc937d
8 changed files with 3 additions and 29 deletions
|
@ -35,7 +35,7 @@ namespace ipa::rkisp1::algorithms {
|
|||
LOG_DEFINE_CATEGORY(RkISP1Dpf)
|
||||
|
||||
Dpf::Dpf()
|
||||
: initialized_(false), config_({}), strengthConfig_({})
|
||||
: config_({}), strengthConfig_({})
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -166,8 +166,6 @@ int Dpf::init([[maybe_unused]] IPAContext &context,
|
|||
strengthConfig_.g = fSObject["g"].get<uint16_t>(64);
|
||||
strengthConfig_.b = fSObject["b"].get<uint16_t>(64);
|
||||
|
||||
initialized_ = true;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -219,9 +217,6 @@ void Dpf::queueRequest(IPAContext &context,
|
|||
void Dpf::prepare(IPAContext &context, const uint32_t frame,
|
||||
IPAFrameContext &frameContext, rkisp1_params_cfg *params)
|
||||
{
|
||||
if (!initialized_)
|
||||
return;
|
||||
|
||||
if (frame == 0) {
|
||||
params->others.dpf_config = config_;
|
||||
params->others.dpf_strength_config = strengthConfig_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue