ipa: raspberrypi: Do not require SDN (spatial denoise) algorithm
A camera tuning is not required to load an SDN algorithm. In keeping with other controls, do not fail when a particular control was expecting this algorithm, just warn that it is not present. Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
84297540b6
commit
9fe81a51ab
1 changed files with 5 additions and 1 deletions
|
@ -875,7 +875,11 @@ void IPARPi::queueRequest(const ControlList &controls)
|
|||
case controls::NOISE_REDUCTION_MODE: {
|
||||
RPiController::DenoiseAlgorithm *sdn = dynamic_cast<RPiController::DenoiseAlgorithm *>(
|
||||
controller_.GetAlgorithm("SDN"));
|
||||
ASSERT(sdn);
|
||||
if (!sdn) {
|
||||
LOG(IPARPI, Warning)
|
||||
<< "Could not set NOISE_REDUCTION_MODE - no SDN algorithm";
|
||||
break;
|
||||
}
|
||||
|
||||
int32_t idx = ctrl.second.get<int32_t>();
|
||||
auto mode = DenoiseModeTable.find(idx);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue