91 return "WhiteBalance";
96inline std::ostream& operator<<(std::ostream& os,
ControllerType mode)
128inline std::ostream& operator<<(std::ostream& os,
ControllerMode mode)
142 if (mode ==
"Continuous")
150 throw peak::common::InvalidParameterException(
"The given controller mode " + mode +
" is unknown!");
155 switch (controllerMode)
164 throw peak::common::InvalidParameterException(
"Unknown controller mode type");
170 switch (controllerMode)
179 throw peak::common::InvalidParameterException(
"Unknown controller mode type");
185 switch (controllerType)
194 throw peak::common::InvalidParameterException(
"Unknown controller type");
242 : m_manager{ manager }
The autofeature manager.
Definition peak_afl.hpp:306
Thrown when a function receives an invalid parameter.
Definition peak_common_exceptions.hpp:50
Interface for objects that can be serialized to and deserialized from an archive.
Definition peak_common_iserializable.hpp:31
std::function< void()> FinishedCallback
Callback function type for operation completion notifications.
Definition peak_afl_icontroller.hpp:234
virtual PEAK_COMMON_NO_DISCARD ControllerType GetType() const =0
Gets the type of this controller.
virtual ~IController()=default
Virtual destructor for proper cleanup of derived classes.
virtual PEAK_COMMON_NO_DISCARD bool IsRunning() const =0
Checks if the controller is currently running.
PEAK_COMMON_NO_DISCARD peak::afl::Manager & GetManager()
Gets a reference to the API manager.
Definition peak_afl_icontroller.hpp:369
FinishedCallback * FinishedCallbackHandle
Handle type for managing callback registrations.
Definition peak_afl_icontroller.hpp:239
IController(const IController &)=delete
Copy constructor deleted to prevent copying.
virtual PEAK_COMMON_NO_DISCARD std::string GetName() const =0
Gets the unique name of this controller.
IController(IController &&)=delete
Move constructor deleted to prevent moving.
virtual void SetMode(ControllerMode mode)=0
Sets the operational mode for this controller.
virtual void ResetToDefault()=0
Resets the controller to its default configuration.
IController & operator=(IController &&)=delete
Move assignment deleted to prevent moving.
IController & operator=(const IController &)=delete
Copy assignment deleted to prevent copying.
virtual PEAK_COMMON_NO_DISCARD ControllerMode GetMode() const =0
Gets the current operational mode of this controller.
peak_afl_controllerType
Auto feature controller types.
Definition peak_afl.h:223
@ PEAK_AFL_CONTROLLER_TYPE_WHITE_BALANCE
Automatic white balance controller.
Definition peak_afl.h:252
@ PEAK_AFL_CONTROLLER_TYPE_AUTOFOCUS
Automatic focus controller.
Definition peak_afl.h:263
@ PEAK_AFL_CONTROLLER_TYPE_BRIGHTNESS
Automatic brightness exposure/gain controller.
Definition peak_afl.h:241
ControllerMode
Controller operation mode enumeration.
Definition peak_afl_icontroller.hpp:60
PEAK_COMMON_NO_DISCARD std::string ToString(ControllerType mode)
Converts ControllerType enumeration to string representation.
Definition peak_afl_icontroller.hpp:79
ControllerType
Controller type enumeration.
Definition peak_afl_icontroller.hpp:41
@ Continuous
Continuous operation - automatic processing on every frame.
Definition peak_afl_icontroller.hpp:64
@ Off
Controller is disabled - no automatic processing.
Definition peak_afl_icontroller.hpp:62
@ Once
Single operation - automatic processing triggered once.
Definition peak_afl_icontroller.hpp:66
@ WhiteBalance
Automatic white balance controller - manages color correction.
Definition peak_afl_icontroller.hpp:47
@ Brightness
Automatic brightness controller - manages exposure and gain.
Definition peak_afl_icontroller.hpp:45
@ Focus
Automatic focus controller - manages lens focus positioning.
Definition peak_afl_icontroller.hpp:43
#define PEAK_COMMON_NO_DISCARD
Compatability macro for the nodiscard attribute.
Definition peak_common_defines.hpp:91
peak_afl_controller_automode
Auto feature controller operation modes.
Definition peak_afl.h:277
@ PEAK_AFL_CONTROLLER_AUTOMODE_CONTINUOUS
Continuous automatic adjustment.
Definition peak_afl.h:296
@ PEAK_AFL_CONTROLLER_AUTOMODE_OFF
Auto feature disabled.
Definition peak_afl.h:285
@ PEAK_AFL_CONTROLLER_AUTOMODE_ONCE
Single adjustment operation.
Definition peak_afl.h:307
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
C API interface for automatic camera feature control.