52 using ProcessingCallback = std::function<void()>;
66 : IController(manager)
67 , m_genericController(manager, std::move(callback))
87 m_genericController.SetMode(mode);
98 return m_genericController.GetMode();
109 return m_genericController.IsRunning();
121 m_genericController.ResetToDefault();
137 m_genericController.SkipFrames().Set(value);
148 return m_genericController.SkipFrames().Get();
160 return m_genericController.SkipFrames().GetRange();
178 m_genericController.Roi().Set(roi);
190 return m_genericController.Roi().Get();
207 return m_genericController.RegisterFinishedCallback(callback);
219 m_genericController.UnregisterFinishedCallback(callbackHandle);
223 detail::GenericWhiteBalance m_genericController;
231 PEAK_COMMON_NO_DISCARD std::string
GetName()
const override
233 return "BasicAutoWhiteBalance";
247 m_genericController.Serialize(archive);
261 m_genericController.Deserialize(archive);
272 return m_genericController.GetType();
Central coordination object for automatic camera feature control.
Definition peak_afl.hpp:708
Interface for a hierarchical key-value archive system.
Definition peak_common_iarchive.hpp:54
void SetRoi(const peak::common::Rectangle &roi)
Sets the region of interest (ROI) for white balance evaluation.
Definition peak_afl_basic_auto_white_balance.hpp:176
void UnregisterFinishedCallback(IController::FinishedCallbackHandle callbackHandle)
Unregisters a previously registered finished callback.
Definition peak_afl_basic_auto_white_balance.hpp:217
peak::common::RangeU GetSkipFramesRange() const
Gets the valid range for the skip frames parameter.
Definition peak_afl_basic_auto_white_balance.hpp:158
~BasicAutoWhiteBalance() override=default
Destructor.
BasicAutoWhiteBalance(peak::afl::Manager &manager, ProcessingCallback callback)
Constructs a BasicAutoWhiteBalance controller.
Definition peak_afl_basic_auto_white_balance.hpp:65
ControllerMode GetMode() const override
Gets the current operating mode of the auto white balance controller.
Definition peak_afl_basic_auto_white_balance.hpp:96
uint32_t GetSkipFrames() const
Gets the current number of frames being skipped.
Definition peak_afl_basic_auto_white_balance.hpp:146
peak::common::Rectangle GetRoi()
Gets the current region of interest for white balance evaluation.
Definition peak_afl_basic_auto_white_balance.hpp:188
IController::FinishedCallbackHandle RegisterFinishedCallback(const IController::FinishedCallback &callback)
Registers a callback function to be called when white balance operations complete.
Definition peak_afl_basic_auto_white_balance.hpp:205
void SetMode(ControllerMode mode) override
Sets the operating mode of the auto white balance controller.
Definition peak_afl_basic_auto_white_balance.hpp:85
void SetSkipFrames(uint32_t value)
Sets the number of frames to skip during auto white balance operations.
Definition peak_afl_basic_auto_white_balance.hpp:135
void ResetToDefault() override
Resets all controller parameters to their default values.
Definition peak_afl_basic_auto_white_balance.hpp:119
bool IsRunning() const override
Checks if the auto white balance controller is currently running.
Definition peak_afl_basic_auto_white_balance.hpp:107
Abstract base interface for all automatic controllers.
Definition peak_afl_icontroller.hpp:223
virtual std::string GetName() const =0
Gets the unique name of this controller.
virtual ControllerType GetType() const =0
Gets the type of this controller.
ControllerMode
Controller operation mode enumeration.
Definition peak_afl_icontroller.hpp:55
ControllerType
Controller type enumeration.
Definition peak_afl_icontroller.hpp:36
detail::RectangleT< int32_t, uint32_t > Rectangle
Rectangle with integer coordinates and unsigned dimensions.
Definition peak_common_rectangle.hpp:231
detail::RangeT< uint32_t > RangeU
Alias for a range of 32-bit unsigned integers.
Definition peak_common_range.hpp:222
Interface definitions and implementations for individual module types used within a pipeline.
Definition peak_afl_generic_auto_brightness.hpp:35
Interfaces and implementations for defining and controlling data processing pipelines.
Definition peak_afl_generic_auto_brightness.hpp:33