108 return value >=
min && value <=
max && ((value -
min) %
step == 0);
162 if (
this != &
other) {
Result type that can contain either a value or an error.
VidProp
Video processing properties (IAMVideoProcAmp interface)
@ Saturation
Color saturation level.
@ WhiteBalance
White balance adjustment.
@ Brightness
Image brightness level.
@ ColorEnable
Color vs. monochrome mode.
@ Sharpness
Image sharpness level.
@ Contrast
Image contrast level.
@ Gamma
Gamma correction value.
@ Hue
Color hue adjustment.
CamMode
Property control mode.
@ Auto
Automatic control by camera.
@ Manual
Manual control by application.
CamProp
Camera control properties (IAMCameraControl interface)
@ ExposureRelative
Relative exposure adjustment.
@ Roll
Camera roll rotation.
@ FocusSimple
Simple focus control.
@ PanRelative
Relative pan movement.
@ RollRelative
Relative roll movement.
@ Zoom
Optical zoom level.
@ Lamp
Camera lamp/flash control.
@ PanTiltRelative
Relative pan/tilt movement.
@ Tilt
Vertical camera rotation.
@ TiltRelative
Relative tilt movement.
@ ScanMode
Scan mode (progressive/interlaced)
@ ZoomRelative
Relative zoom movement.
@ Privacy
Privacy mode on/off.
@ IrisRelative
Relative iris adjustment.
@ Iris
Aperture/iris setting.
@ FocusRelative
Relative focus adjustment.
@ PanTilt
Combined pan/tilt control.
@ DigitalZoomRelative
Relative digital zoom.
@ Pan
Horizontal camera rotation.
@ BacklightCompensation
Backlight compensation.
@ DigitalZoom
Digital zoom level.
Represents a camera device.
std::wstring path
Unique device path/identifier.
Device(const Device &other)
Copy constructor - ensures deep copy of string data.
Device()=default
Default constructor.
Device(Device &&) noexcept=default
Move constructor - transfers ownership of string data.
const std::wstring & get_id() const
Get stable identifier for this device.
std::wstring name
Human-readable device name.
Device(std::wstring n, std::wstring p)
Construct device with name and path.
bool is_valid() const
Check if device has valid identifying information.
Device & operator=(const Device &other)
Copy assignment operator.
Property range and default information.
int clamp(int value) const
Clamp value to valid range.
bool is_valid(int value) const
Check if a value is valid for this range.
int default_val
Default value.
int min
Minimum supported value.
PropRange()=default
Default constructor.
int step
Step size between valid values.
int max
Maximum supported value.
CamMode default_mode
Default control mode.
Property setting with value and control mode.
PropSetting()=default
Default constructor.
CamMode mode
Control mode (auto/manual)
PropSetting(int v, CamMode m)
Construct property setting.