diff options
author | Milan Zamazal <mzamazal@redhat.com> | 2025-05-15 18:04:31 +0200 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2025-06-01 23:08:01 +0100 |
commit | 59ac34b728c573317fd37ad10e6d1c9df486c5e4 (patch) | |
tree | a2f176280ab4df10291b0a5b2dd49c782b9988c8 /utils/codegen | |
parent | e342f050c283283eec1191c94a692325362c170e (diff) |
libcamera: software_isp: Add saturation control
Saturation control is added on top of the colour correction matrix. A
method of saturation adjustment that can be fully integrated into the
colour correction matrix is used. The control is available only if Ccm
algorithm is enabled.
The control uses 0.0-2.0 value range, with 1.0 being unmodified
saturation, 0.0 full desaturation and 2.0 quite saturated.
The saturation is adjusted by converting to Y'CbCr colour space,
applying the saturation value on the colour axes, and converting back to
RGB. ITU-R BT.601 conversion is used to convert between the colour
spaces, for no particular reason.
The colour correction matrix is applied before gamma and the given
matrix is suitable for such a case. Alternatively, the transformation
used in libcamera rpi ccm.cpp could be used.
Signed-off-by: Milan Zamazal <mzamazal@redhat.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'utils/codegen')
0 files changed, 0 insertions, 0 deletions