diff options
author | David Plowman <david.plowman@raspberrypi.com> | 2023-03-02 12:57:31 +0000 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2023-03-07 21:55:05 +0000 |
commit | 85541db7bbb5caba1ba0ed5fe85cf5855d024e0b (patch) | |
tree | 904c5d667df2a28282490d26c1d073bf6ad73fa9 /Documentation/guides/ipa.rst | |
parent | 2a261d911f50d925be7b8921c1af58cde8a7f545 (diff) |
ipa: raspberrypi: agc: Fix overflow in Y value calculation
The maxVal variable in the computeInitialY function needs to be a
uint64_t, otherwise the subsequent multiplications in the function
can overflow on relatively high resolution images (when the counts in
the regions go over 16 bits).
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Naushir Patuck <naush@raspberrypi.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'Documentation/guides/ipa.rst')
0 files changed, 0 insertions, 0 deletions