1 #ifndef NUITRACK_NUITRAKDEVICE_H_
2 #define NUITRACK_NUITRAKDEVICE_H_
5 #include "nuitrack/capi/NuitrackDevice_CAPI.h"
6 #include "nuitrack/utils/ExceptionTranslator.h"
22 typedef std::shared_ptr<NuitrackDevice> Ptr;
34 nuitrack_deleteNuitrackDeviceImpl(_pimpl);
45 int string_buffer_size = 0;
46 nuitrack_nuitrackDevice_getStringBufferSizeConst(string_buffer_size);
48 result.resize(string_buffer_size);
50 nuitrack_nuitrackDevice_getInfo(_pimpl, info_type, (
char *)result.c_str());
51 result.resize(strlen(result.c_str()));
64 std::vector<VideoMode> res;
67 nuitrack_nuitrackDevice_getVideoModeListSize(_pimpl, stream_type, buf_size);
69 for(
int i = 0; i < buf_size; i++)
72 nuitrack_nuitrackDevice_getVideoModeList(_pimpl, stream_type, i, tmp);
88 nuitrack_nuitrackDevice_getSelectedVideoMode(_pimpl, stream_type, tmp);
100 nuitrack_nuitrackDevice_setVideoMode(_pimpl, stream_type, video_mode);
111 nuitrack_nuitrackDevice_getActivationStatus(_pimpl, res);
124 nuitrack_nuitrackDevice_activate(_pimpl, activation_key.c_str(), &e);
125 tdv::nuitrack::ExceptionTranslator::handle(e);
131 NuitrackDeviceData* _pimpl;
VideoMode getSelectedVideoMode(StreamType stream_type)
Provides selected video mode for a current StreamType.
Definition: NuitrackDevice.h:85
Type
Definition: NuitrackDeviceCommon.h:32
Contains parameters for a stream.
Definition: NuitrackDeviceCommon.h:61
Status
Definition: NuitrackDeviceCommon.h:17
NuitrackDevice(NuitrackDeviceData *pimpl)
For internal use only.
Definition: NuitrackDevice.h:27
ActivationStatus getActivationStatus()
Get license activation status.
Definition: NuitrackDevice.h:108
std::string getInfo(DeviceInfoType info_type)
Provides device info by type.
Definition: NuitrackDevice.h:43
void setVideoMode(StreamType stream_type, VideoMode video_mode)
Sets video mode for a current StreamType.
Definition: NuitrackDevice.h:98
void activate(std::string activation_key)
Activate the current device.
Definition: NuitrackDevice.h:121
Central class for common Nuitrack operations.
Definition: Nuitrack.h:47
Contains information and settings for a device.
Definition: NuitrackDevice.h:19
Type
Definition: NuitrackDeviceCommon.h:48
std::vector< VideoMode > getAvailableVideoModes(StreamType stream_type)
Provides all available video modes for a current StreamType.
Definition: NuitrackDevice.h:62