From dae4a4406779ba1bc1687446d20c82a1f96b5258 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 25 Feb 2024 18:36:15 +0200 Subject: libcamera: Use utils::to_underlying() Replace manual implementations of the utils::to_underlying() helper with calls to the function. Signed-off-by: Laurent Pinchart Reviewed-by: Jacopo Mondi Reviewed-by: Naushir Patuck --- src/ipa/rpi/controller/rpi/sdn.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/ipa/rpi/controller') diff --git a/src/ipa/rpi/controller/rpi/sdn.cpp b/src/ipa/rpi/controller/rpi/sdn.cpp index 6743919e..2f777dd7 100644 --- a/src/ipa/rpi/controller/rpi/sdn.cpp +++ b/src/ipa/rpi/controller/rpi/sdn.cpp @@ -6,6 +6,7 @@ */ #include +#include #include "../denoise_status.h" #include "../noise_status.h" @@ -60,7 +61,7 @@ void Sdn::prepare(Metadata *imageMetadata) status.noiseConstant = noiseStatus.noiseConstant * deviation_; status.noiseSlope = noiseStatus.noiseSlope * deviation_; status.strength = strength_; - status.mode = static_cast>(mode_); + status.mode = utils::to_underlying(mode_); imageMetadata->set("denoise.status", status); LOG(RPiSdn, Debug) << "programmed constant " << status.noiseConstant -- cgit v1.2.1