summaryrefslogtreecommitdiff
path: root/utils/tuning/libtuning/parsers/parser.py
diff options
context:
space:
mode:
authorStefan Klug <stefan.klug@ideasonboard.com>2024-06-26 12:33:48 +0200
committerStefan Klug <stefan.klug@ideasonboard.com>2024-07-05 22:38:20 +0200
commitd5db46232e87dd23790c99f8460cb3a920e72668 (patch)
treee109d4a6d34e46dd964b1e04af7894d977c9f1e9 /utils/tuning/libtuning/parsers/parser.py
parente91f6c384f837f8cf685c9d32355ea1b3b77d5ec (diff)
libtuning: lsc: Prevent negative values
In cases where the calibration image contains super dark areas, or when an invalid blacklevel was supplied, the grid might get close to zero or negative. This would have bad effects on the 1/grid later. So clamp the values to a small positive number. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Diffstat (limited to 'utils/tuning/libtuning/parsers/parser.py')
0 files changed, 0 insertions, 0 deletions