Clamp results correctly when shifting video levels, and account for that in tests.
authorCarl Hetherington <cth@carlh.net>
Mon, 24 May 2021 22:32:39 +0000 (00:32 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 May 2021 19:35:12 +0000 (21:35 +0200)
commit71f3520ea315fb65ff151c99aa0b64fc8dccdb1d
treea09a8200a7ca14cada2e4b72ff40a1adb0b44f32
parentb26f4e4cfa0a3b6df794f3207b420a413c52e773
Clamp results correctly when shifting video levels, and account for that in tests.
src/lib/image.cc
src/lib/util.h
test/video_level_test.cc