ipa: rkisp1: Use frame number passed to Algorithm::prepare()
Now that the Algorithm::prepare() function takes a frame number, we can use it to replace the IPAActiveState::frameCount member. 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:
@@ -231,12 +231,12 @@ int DefectPixelClusterCorrection::init([[maybe_unused]] IPAContext &context,
|
||||
/**
|
||||
* \copydoc libcamera::ipa::Algorithm::prepare
|
||||
*/
|
||||
void DefectPixelClusterCorrection::prepare(IPAContext &context,
|
||||
[[maybe_unused]] const uint32_t frame,
|
||||
void DefectPixelClusterCorrection::prepare([[maybe_unused]] IPAContext &context,
|
||||
const uint32_t frame,
|
||||
[[maybe_unused]] IPAFrameContext &frameContext,
|
||||
rkisp1_params_cfg *params)
|
||||
{
|
||||
if (context.activeState.frameCount > 0)
|
||||
if (frame > 0)
|
||||
return;
|
||||
|
||||
if (!initialized_)
|
||||
|
||||
Reference in New Issue
Block a user