summaryrefslogtreecommitdiff
path: root/include/android/hardware
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-04 03:57:08 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-09-28 05:41:15 +0300
commitc43c8b1fa0d3dff50b017c33fc8d611a3f1da18e (patch)
tree9a010700f5ce0e89dd6ab8dcdaa683bb9f10f628 /include/android/hardware
parent7d0004a410db6a52b8c212294ce267c14f8300ac (diff)
ipa: rkisp1: awb: Prevent RGB means from being negative
Due to hardware rounding errors in the YCbCr means, the calculated RGB means may be negative. This would lead to negative gains, messing up calculation. Prevent this by clamping the means to positive values. 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 'include/android/hardware')
0 files changed, 0 insertions, 0 deletions
uncropped, width*scaleX is sensorWidth) */ double scaleX, scaleY; /* scaling of the noise compared to the native sensor mode */ double noiseFactor; /* line time */ libcamera::utils::Duration lineLength; /* any camera transform *not* reflected already in the camera tuning */ libcamera::Transform transform; /* minimum and maximum fame lengths in units of lines */ uint32_t minFrameLength, maxFrameLength; /* sensitivity of this mode */ double sensitivity; };