36 return "TiltRelative";
38 return "RollRelative";
40 return "ZoomRelative";
42 return "ExposureRelative";
44 return "IrisRelative";
46 return "FocusRelative";
50 return "PanTiltRelative";
56 return "DigitalZoomRelative";
58 return "BacklightCompensation";
83 return "WhiteBalance";
85 return "BacklightCompensation";
118 return L
"PanRelative";
120 return L
"TiltRelative";
122 return L
"RollRelative";
124 return L
"ZoomRelative";
126 return L
"ExposureRelative";
128 return L
"IrisRelative";
130 return L
"FocusRelative";
134 return L
"PanTiltRelative";
136 return L
"FocusSimple";
138 return L
"DigitalZoom";
140 return L
"DigitalZoomRelative";
142 return L
"BacklightCompensation";
153 return L
"Brightness";
159 return L
"Saturation";
165 return L
"ColorEnable";
167 return L
"WhiteBalance";
169 return L
"BacklightCompensation";
183 return std::string();
188 throw std::runtime_error(
"WideCharToMultiByte failed.");
199 return std::wstring();
203 return std::wstring();
212 result.push_back(
static_cast<wchar_t>(
static_cast<unsigned char>(
c)));
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.
@ BacklightCompensation
Backlight compensation level.
@ Hue
Color hue adjustment.
CamMode
Property control mode.
@ Auto
Automatic control by camera.
const wchar_t * to_wstring(CamProp)
Convert camera property enum to wide string.
const char * to_string(CamProp)
Convert camera property enum to string.
std::string to_utf8(const std::wstring &wstr)
Converts a wide string (UTF-16 on Windows) to a UTF-8 string.
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.
String conversion utilities for enums and types.