duvc-ctl 2.0.0
USB Video Class Camera Control Library
Loading...
Searching...
No Matches
string_conversion.h
Go to the documentation of this file.
1#pragma once
2
9#include <string>
10
11namespace duvc {
12
18const char *to_string(CamProp prop);
19
25const char *to_string(VidProp prop);
26
32const char *to_string(CamMode mode);
33
39const wchar_t *to_wstring(CamProp prop);
40
46const wchar_t *to_wstring(VidProp prop);
47
53const wchar_t *to_wstring(CamMode mode);
54
60std::string to_utf8(const std::wstring &wstr);
61
67std::string to_utf8(const std::wstring &wstr);
68
74std::wstring to_wstring(const std::string &str);
75
76
77} // namespace duvc
Definition core.h:13
VidProp
Video processing properties (IAMVideoProcAmp interface)
Definition types.h:50
CamMode
Property control mode.
Definition types.h:66
const wchar_t * to_wstring(CamProp)
Convert camera property enum to wide string.
Definition core.cpp:707
const char * to_string(CamProp)
Convert camera property enum to string.
Definition core.cpp:678
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)
Definition types.h:18
Core data types and enumerations for duvc-ctl.