79f0fc937d
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>
33 lines
733 B
C++
33 lines
733 B
C++
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
|
/*
|
|
* Copyright (C) 2021-2022, Ideas On Board
|
|
*
|
|
* dpcc.h - RkISP1 Defect Pixel Cluster Correction control
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "algorithm.h"
|
|
|
|
namespace libcamera {
|
|
|
|
namespace ipa::rkisp1::algorithms {
|
|
|
|
class DefectPixelClusterCorrection : public Algorithm
|
|
{
|
|
public:
|
|
DefectPixelClusterCorrection();
|
|
~DefectPixelClusterCorrection() = default;
|
|
|
|
int init(IPAContext &context, const YamlObject &tuningData) override;
|
|
void prepare(IPAContext &context, const uint32_t frame,
|
|
IPAFrameContext &frameContext,
|
|
rkisp1_params_cfg *params) override;
|
|
|
|
private:
|
|
rkisp1_cif_isp_dpcc_config config_;
|
|
};
|
|
|
|
} /* namespace ipa::rkisp1::algorithms */
|
|
} /* namespace libcamera */
|