ipa: rpi: denoise: Support different denoise configurations
Some use cases may require stronger, or different, denosie settings to others. For example, the way frames are accumulated during single exposure HDR means that we may want stronger denoise. This commit adds such support for different configurations that can be defined in the tuning file. Older tuning files, or files where there is only a single configuration, load only the "normal" denoise configuration. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Naushir Patuck <naush@raspberrypi.com> Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
0ff20bf8c1
commit
ac232470fb
3 changed files with 113 additions and 57 deletions
|
@ -6,6 +6,8 @@
|
|||
*/
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
#include "algorithm.h"
|
||||
|
||||
namespace RPiController {
|
||||
|
@ -18,6 +20,8 @@ public:
|
|||
DenoiseAlgorithm(Controller *controller) : Algorithm(controller) {}
|
||||
/* A Denoise algorithm must provide the following: */
|
||||
virtual void setMode(DenoiseMode mode) = 0;
|
||||
/* Some platforms may not be able to define this, so supply a default. */
|
||||
virtual void setConfig([[maybe_unused]] std::string const &name) {}
|
||||
};
|
||||
|
||||
} /* namespace RPiController */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue