diff options
author | David Plowman <david.plowman@raspberrypi.com> | 2023-12-06 10:38:38 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2024-01-09 15:39:02 +0000 |
commit | 8892d937c55ce2d62a5b0ee24c2b23b64366e73c (patch) | |
tree | 0e65ca57d1e1234565efb4f6af084d6a9927ee11 /src/ipa/rpi/controller/rpi/black_level.cpp | |
parent | e71d63ce1bfa9784e18852fec264357bda5e3671 (diff) |
ipa: rpi: black_level: Add an initialValues method
This allows the IPA to discover the correct black level values even
before any frames have been processed. This is important on the PiSP
platform where the front end black level blocks must be programmed in
advance.
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>
Diffstat (limited to 'src/ipa/rpi/controller/rpi/black_level.cpp')
-rw-r--r-- | src/ipa/rpi/controller/rpi/black_level.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ipa/rpi/controller/rpi/black_level.cpp b/src/ipa/rpi/controller/rpi/black_level.cpp index 85baec3f..2e3db51f 100644 --- a/src/ipa/rpi/controller/rpi/black_level.cpp +++ b/src/ipa/rpi/controller/rpi/black_level.cpp @@ -22,7 +22,7 @@ LOG_DEFINE_CATEGORY(RPiBlackLevel) #define NAME "rpi.black_level" BlackLevel::BlackLevel(Controller *controller) - : Algorithm(controller) + : BlackLevelAlgorithm(controller) { } @@ -45,6 +45,14 @@ int BlackLevel::read(const libcamera::YamlObject ¶ms) return 0; } +void BlackLevel::initialValues(uint16_t &blackLevelR, uint16_t &blackLevelG, + uint16_t &blackLevelB) +{ + blackLevelR = blackLevelR_; + blackLevelG = blackLevelG_; + blackLevelB = blackLevelB_; +} + void BlackLevel::prepare(Metadata *imageMetadata) { /* |