summaryrefslogtreecommitdiff
path: root/utils/ipc
diff options
context:
space:
mode:
authorJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-03-02 16:11:45 +0100
committerJacopo Mondi <jacopo.mondi@ideasonboard.com>2023-03-06 17:15:46 +0100
commit83f0ea3bee555ef0fbae8f305e177712b74337b4 (patch)
tree7f0ba1b57e68ae7b10a71461ac2d0a584e8d2683 /utils/ipc
parentdacf0ef84cf3358473c9b6f22e78aa81d0506d31 (diff)
ipa: rkisp1: lsc: Fix integer division error
The RkISP1 implementation of the LensShadinCorrection 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>
Diffstat (limited to 'utils/ipc')
0 files changed, 0 insertions, 0 deletions