mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-18 18:05:09 +03:00
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
|
@ -49,7 +49,6 @@ LOG_DEFINE_CATEGORY(RkISP1Gsl)
|
|||
static constexpr unsigned int kDegammaXIntervals = 16;
|
||||
|
||||
GammaSensorLinearization::GammaSensorLinearization()
|
||||
: initialized_(false)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -111,7 +110,6 @@ int GammaSensorLinearization::init([[maybe_unused]] IPAContext &context,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
initialized_ = true;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -126,9 +124,6 @@ void GammaSensorLinearization::prepare([[maybe_unused]] IPAContext &context,
|
|||
if (frame > 0)
|
||||
return;
|
||||
|
||||
if (!initialized_)
|
||||
return;
|
||||
|
||||
params->others.sdg_config.xa_pnts.gamma_dx0 = gammaDx_[0];
|
||||
params->others.sdg_config.xa_pnts.gamma_dx1 = gammaDx_[1];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue