56 using ProcessingCallback = std::function<void()>;
70 : IController(manager)
71 , m_genericController(manager, std::move(callback))
91 m_genericController.SetMode(mode);
102 return m_genericController.GetMode();
113 return m_genericController.IsRunning();
125 m_genericController.ResetToDefault();
141 m_genericController.SkipFrames().Set(value);
152 return m_genericController.SkipFrames().Get();
164 return m_genericController.SkipFrames().GetRange();
182 m_genericController.Roi().Set(roi);
194 return m_genericController.Roi().Get();
211 return m_genericController.RegisterFinishedCallback(callback);
223 m_genericController.UnregisterFinishedCallback(callbackHandle);
227 detail::GenericWhiteBalance m_genericController;
235 PEAK_COMMON_NO_DISCARD std::string
GetName()
const override
237 return "BasicAutoWhiteBalance";
251 m_genericController.Serialize(archive);
265 m_genericController.Deserialize(archive);
276 return m_genericController.GetType();
Central coordination object for automatic camera feature control.
Definition peak_afl.hpp:663
Interface for a hierarchical key-value archive system.
Definition peak_common_iarchive.hpp:59
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:180
void UnregisterFinishedCallback(IController::FinishedCallbackHandle callbackHandle)
Unregisters a previously registered finished callback.
Definition peak_afl_basic_auto_white_balance.hpp:221
peak::common::RangeU GetSkipFramesRange() const
Gets the valid range for the skip frames parameter.
Definition peak_afl_basic_auto_white_balance.hpp:162
~BasicAutoWhiteBalance() override=default
Destructor.
BasicAutoWhiteBalance(peak::afl::Manager &manager, ProcessingCallback callback)
Constructs a BasicAutoWhiteBalance controller.
Definition peak_afl_basic_auto_white_balance.hpp:69
ControllerMode GetMode() const override
Gets the current operating mode of the auto white balance controller.
Definition peak_afl_basic_auto_white_balance.hpp:100
uint32_t GetSkipFrames() const
Gets the current number of frames being skipped.
Definition peak_afl_basic_auto_white_balance.hpp:150
peak::common::Rectangle GetRoi()
Gets the current region of interest for white balance evaluation.
Definition peak_afl_basic_auto_white_balance.hpp:192
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:209
void SetMode(ControllerMode mode) override
Sets the operating mode of the auto white balance controller.
Definition peak_afl_basic_auto_white_balance.hpp:89
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:139
void ResetToDefault() override
Resets all controller parameters to their default values.
Definition peak_afl_basic_auto_white_balance.hpp:123
bool IsRunning() const override
Checks if the auto white balance controller is currently running.
Definition peak_afl_basic_auto_white_balance.hpp:111
Abstract base interface for all automatic controllers.
Definition peak_afl_icontroller.hpp:227
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:59
ControllerType
Controller type enumeration.
Definition peak_afl_icontroller.hpp:40
detail::RectangleT< int32_t, uint32_t > Rectangle
Rectangle with integer coordinates and unsigned dimensions.
Definition peak_common_rectangle.hpp:236
detail::RangeT< uint32_t > RangeU
Alias for a range of 32-bit unsigned integers.
Definition peak_common_range.hpp:172
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