diff options
author | David Plowman <david.plowman@raspberrypi.com> | 2021-02-04 09:34:54 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-02-07 16:06:51 +0200 |
commit | 7a8150c5b9056d9f374e5edc28abd81bca40f988 (patch) | |
tree | e08e353fd9e5f2a31c8894aaf9b57824c58f5691 /src/ipa/raspberrypi/controller/rpi/contrast.hpp | |
parent | df3a86ace315115d3abf1c9520683991f4ec0091 (diff) |
ipa: rasberrypi: contrast: Remove unnecessary atomic variables
SetBrightness() and SetContrast() are only called synchronously so
there is no need for brightness_ and contrast_ to be atomic.
Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/controller/rpi/contrast.hpp')
-rw-r--r-- | src/ipa/raspberrypi/controller/rpi/contrast.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ipa/raspberrypi/controller/rpi/contrast.hpp b/src/ipa/raspberrypi/controller/rpi/contrast.hpp index 6836f181..85624539 100644 --- a/src/ipa/raspberrypi/controller/rpi/contrast.hpp +++ b/src/ipa/raspberrypi/controller/rpi/contrast.hpp @@ -6,7 +6,6 @@ */ #pragma once -#include <atomic> #include <mutex> #include "../contrast_algorithm.hpp" @@ -42,8 +41,8 @@ public: private: ContrastConfig config_; - std::atomic<double> brightness_; - std::atomic<double> contrast_; + double brightness_; + double contrast_; ContrastStatus status_; std::mutex mutex_; }; |