ipa: rkisp1: dpf: Enable strength after enable Dpf

The filter strength configuration block was previously only enabled on the
first frame (frame == 0). Apply the strength values when denoise is active.
This prevents the strength config from being disabled on subsequent frames.

Signed-off-by: Rui Wang <rui.wang@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
This commit is contained in:
Rui Wang
2025-11-11 09:53:26 -05:00
committed by Stefan Klug
parent 6d19c813b0
commit 30779421e8

View File

@@ -225,8 +225,12 @@ void Dpf::prepare(IPAContext &context, const uint32_t frame,
auto config = params->block<BlockType::Dpf>();
config.setEnabled(frameContext.dpf.denoise);
auto strengthConfig = params->block<BlockType::DpfStrength>();
strengthConfig.setEnabled(frameContext.dpf.denoise);
if (frameContext.dpf.denoise) {
*config = config_;
*strengthConfig = strengthConfig_;
const auto &awb = context.configuration.awb;
const auto &lsc = context.configuration.lsc;
@@ -250,12 +254,6 @@ void Dpf::prepare(IPAContext &context, const uint32_t frame,
else
mode = RKISP1_CIF_ISP_DPF_GAIN_USAGE_DISABLED;
}
if (frame == 0) {
auto strengthConfig = params->block<BlockType::DpfStrength>();
strengthConfig.setEnabled(true);
*strengthConfig = strengthConfig_;
}
}
REGISTER_IPA_ALGORITHM(Dpf, "Dpf")