diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-16 00:34:16 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-17 16:15:10 +0300 |
commit | ea43e056a83fcfcf627669b4e5ee922d97c95d4b (patch) | |
tree | 369f9aaad794a4ac6df76496e8b4113a5ecc8b77 /src/android/cros/meson.build | |
parent | 05d0f952a36c40392a9c8ccf86d3567a64ecba32 (diff) |
ipa: rkisp1: agc: Simplify predivider calculation
The condition
if (std::pow(std::floor(root), 2) < factor)
predivider = static_cast<uint8_t>(std::ceil(root));
else
predivider = static_cast<uint8_t>(std::floor(root));
can only be false when the factor's root is an integer. In that case,
std::ceil(root) and std::floor(root) will be equal. The computation can
thus be simplified by always rounding up.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/android/cros/meson.build')
0 files changed, 0 insertions, 0 deletions