[libcamera-devel] [PATCH 3/7] ipa: raspberrypi: ccm: Remove unnecessary atomic variable
David Plowman
david.plowman at raspberrypi.com
Thu Feb 4 10:34:53 CET 2021
SetSaturation() gets called synchronously so there is no need for
saturation_ to be atomic.
Signed-off-by: David Plowman <david.plowman at raspberrypi.com>
---
src/ipa/raspberrypi/controller/rpi/ccm.hpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/ipa/raspberrypi/controller/rpi/ccm.hpp b/src/ipa/raspberrypi/controller/rpi/ccm.hpp
index fcf077e7..330ed51f 100644
--- a/src/ipa/raspberrypi/controller/rpi/ccm.hpp
+++ b/src/ipa/raspberrypi/controller/rpi/ccm.hpp
@@ -7,7 +7,6 @@
#pragma once
#include <vector>
-#include <atomic>
#include "../ccm_algorithm.hpp"
#include "../pwl.hpp"
@@ -70,7 +69,7 @@ public:
private:
CcmConfig config_;
- std::atomic<double> saturation_;
+ double saturation_;
};
} // namespace RPiController
--
2.20.1
More information about the libcamera-devel
mailing list