diff options
author | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-03-02 16:11:45 +0100 |
---|---|---|
committer | Jacopo Mondi <jacopo.mondi@ideasonboard.com> | 2023-03-06 18:12:10 +0100 |
commit | cde9293cf9899b0fc4ce9cf89dd29f26be77f35c (patch) | |
tree | eca3741c81a49873bf316e7a4083265ee8b68e88 /src/apps/qcam/assets/feathericons/percent.svg | |
parent | a146e05125fdac75b8ffb6a818e00a446cec65dd (diff) |
ipa: rkisp1: lsc: Fix integer division error
The RkISP1 implementation of the LensShadingCorrection algorithm has been
made adaptive to the scene color temperature in commit 14c869c00fdd ("ipa:
rkisp1: Take into account color temperature during LSC algorithm").
The LSC algorithm interpolates the correction factors using the
table's reference color temperatures. When calculating the interpolation
coefficients, an unintended integer division makes both coefficient
zeros resulting in a completely black image.
Fix this by type casting to double one of the division operands.
Fixes: 14c869c00fdd ("ipa: rkisp1: Take into account color temperature during LSC algorithm")
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'src/apps/qcam/assets/feathericons/percent.svg')
0 files changed, 0 insertions, 0 deletions