73 : m_controller{ std::move(controller) }
95 void Set(
const double& value)
override
97 m_controller->SetAutoPercentile(value);
116 PEAK_COMMON_NO_DISCARD
double Get()
const override
118 return m_controller->GetAutoPercentile();
143 const auto result = m_controller->GetAutoPercentileRange();
144 return { result.min, result.max, result.inc };
194 std::shared_ptr<peak::afl::Controller> m_controller;
Interface for a hierarchical key-value archive system.
Definition peak_common_iarchive.hpp:59
virtual double GetDouble(const std::string &key) const =0
Retrieves a double-precision number by key.
virtual void SetDouble(const std::string &key, double value)=0
Stores a double-precision floating point number.
void Serialize(peak::common::serialization::IArchive &archive) const override
Serializes the current auto percentile value to an archive.
Definition peak_afl_auto_percentile.hpp:161
AutoPercentile(std::shared_ptr< peak::afl::Controller > controller)
Constructs an AutoPercentile feature with the specified controller.
Definition peak_afl_auto_percentile.hpp:72
double Get() const override
Gets the current auto percentile value.
Definition peak_afl_auto_percentile.hpp:116
void Set(const double &value) override
Sets the auto percentile value.
Definition peak_afl_auto_percentile.hpp:95
void Deserialize(const peak::common::serialization::IArchive &archive) override
Deserializes the auto percentile value from an archive.
Definition peak_afl_auto_percentile.hpp:181
RangeD GetRange() const override
Gets the valid range for auto percentile values.
Definition peak_afl_auto_percentile.hpp:141
Interface for features that have a valid range of values.
Definition peak_afl_ifeature.hpp:126
Interface definitions and implementations for individual module types used within a pipeline.
Definition peak_afl_generic_auto_brightness.hpp:39
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_afl_generic_auto_brightness.hpp:37
peak::common::detail::RangeT< double > RangeD
Type alias for double-precision range values.
Definition peak_afl_ifeature.hpp:26