[libcamera-devel] [PATCH 5/7] ipa: raspberrypi: noise: Remove unnecessary atomic variable

David Plowman david.plowman at raspberrypi.com
Thu Feb 4 10:34:55 CET 2021


mode_factor_ does not need to be atomic - it is set by SwitchMode()
which runs synchronously.

Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
---
 src/ipa/raspberrypi/controller/rpi/noise.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ipa/raspberrypi/controller/rpi/noise.hpp b/src/ipa/raspberrypi/controller/rpi/noise.hpp
index 6f6e0be9..1c9de5c8 100644
--- a/src/ipa/raspberrypi/controller/rpi/noise.hpp
+++ b/src/ipa/raspberrypi/controller/rpi/noise.hpp
@@ -26,7 +26,7 @@ private:
 	// the noise profile for analogue gain of 1.0
 	double reference_constant_;
 	double reference_slope_;
-	std::atomic<double> mode_factor_;
+	double mode_factor_;
 };
 
 } // namespace RPiController
-- 
2.20.1



More information about the libcamera-devel mailing list