summaryrefslogtreecommitdiff
path: root/src/ipa/simple/black_level.cpp
diff options
context:
space:
mode:
authorMilan Zamazal <mzamazal@redhat.com>2024-05-31 14:38:36 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2024-06-02 01:47:24 +0300
commit738bd37905060a9f1b493edb9265574b9d585be1 (patch)
treea9bccd0ff8f21416d46b44748735305515f4254f /src/ipa/simple/black_level.cpp
parentaad5837d70f8d3dc19f62f88f1434e3c9cf5ffbe (diff)
libcamera: software_isp: Use a specific integer type for black level
The documented range of values corresponds to uint8_t, so let's use that type. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Andrei Konovalov <andrey.konovalov.ynk@gmail.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/simple/black_level.cpp')
-rw-r--r--src/ipa/simple/black_level.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ipa/simple/black_level.cpp b/src/ipa/simple/black_level.cpp
index 53b4c040..cc490eb5 100644
--- a/src/ipa/simple/black_level.cpp
+++ b/src/ipa/simple/black_level.cpp
@@ -43,7 +43,7 @@ BlackLevel::BlackLevel()
* \return The black level, in the range from 0 (minimum) to 255 (maximum).
* If the black level couldn't be determined yet, return 0.
*/
-unsigned int BlackLevel::get() const
+uint8_t BlackLevel::get() const
{
return blackLevelSet_ ? blackLevel_ : 0;
}