| Message ID | 20251111120634.1132790-1-rui.wang@ideasonboard.com |
|---|---|
| State | Superseded |
| Headers | show |
| Series |
|
| Related | show |
diff --git a/src/ipa/rkisp1/algorithms/dpf.cpp b/src/ipa/rkisp1/algorithms/dpf.cpp index cb6095da..e95fb95d 100644 --- a/src/ipa/rkisp1/algorithms/dpf.cpp +++ b/src/ipa/rkisp1/algorithms/dpf.cpp @@ -251,9 +251,10 @@ void Dpf::prepare(IPAContext &context, const uint32_t frame, mode = RKISP1_CIF_ISP_DPF_GAIN_USAGE_DISABLED; } - if (frame == 0) { - auto strengthConfig = params->block<BlockType::DpfStrength>(); - strengthConfig.setEnabled(true); + auto strengthConfig = params->block<BlockType::DpfStrength>(); + strengthConfig.setEnabled(frameContext.dpf.denoise); + + if (frameContext.dpf.denoise) { *strengthConfig = strengthConfig_; } }
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> --- src/ipa/rkisp1/algorithms/dpf.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)