diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-09-08 00:39:53 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2022-09-28 05:41:15 +0300 |
commit | 290ebeb59525eb7fdcc6f815d8dee6cbe3d8a314 (patch) | |
tree | 88e4ba07bf7da821d564052ebf419ecb93b1ef2d /utils/checkstyle.py | |
parent | a2f34f19578e8dae37cb7898710d15b83f176f94 (diff) |
ipa: rkisp1: awb: Use frame context to fix gains calculations
The AWB statistics are computed after the ISP applies the colour gains.
This means that the red, green and blue means do not match the data
coming directly from the sensor, but are multiplied by the colour gains
that were used for the frame on which the statistics have been computed.
The AWB algorithm needs to take this into account when calculating the
colour gains for the next frame. Do so by dividing the means by the
gains that were applied to the frame, retrieved from the frame context.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'utils/checkstyle.py')
0 files changed, 0 insertions, 0 deletions