ipa: rkisp1: agc: Fix metering modes
The weights for a given metering mode are applied to the histogram data
inside the histogram statistics block. The AE statistics do not contain
any weights. Therefore the weights are honored when AgcMeanLuminance
calculates the upper or lower constraints, but ignored in the
calculation of the frame luminance. Fix that by manually applying the
weights in the luminance calculation.
Fixes: 4c5152843a
("ipa: rkisp1: Derive rkisp1::algorithms::Agc from AgcMeanLuminance")
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
This commit is contained in:
parent
e2b4000dc9
commit
0539e88679
2 changed files with 11 additions and 3 deletions
|
@ -55,6 +55,7 @@ private:
|
|||
utils::Duration frameDuration);
|
||||
|
||||
Span<const uint8_t> expMeans_;
|
||||
Span<const uint8_t> weights_;
|
||||
|
||||
std::map<int32_t, std::vector<uint8_t>> meteringModes_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue