18#include "libuvc/libuvc.h"
19#include "LibUVCProxy.h"
68 int setFramerate(
unsigned int numerator,
unsigned int denominator);
92 IRDeviceError
getFrame(
unsigned char* buffer,
double* timestamp=NULL,
int timeoutMilliseconds = -1);
112 std::unique_ptr<LibUVCProxy> _libUVCProxy;
115 uvc_device_handle_t *_devh;
116 uvc_stream_ctrl_t _ctrl;
117 uvc_stream_handle_t * _strmh;
UVC device interface (Linux platforms)
Definition: IRDeviceLibUVC.h:30
virtual void run()
Run device, i.e., treat main thread in blocking mode.
int openDevice(unsigned int videoFormatIndex)
Open device.
~IRDeviceLibUVC()
Destructor.
int stopStreaming()
Stop video grabbing.
int startStreaming()
Start video grabbing.
bool isOpen()
Check if device was already opened.
virtual void exit()
Exit blocking run method, if previously called.
void setSerial(unsigned long serno)
Force serial number.
int closeDevice()
Close device.
int setFramerate(unsigned int numerator, unsigned int denominator)
Set framerate of device (numerator / denominator)
IRDeviceError getFrame(unsigned char *buffer, double *timestamp=NULL, int timeoutMilliseconds=-1)
Acquire one frame.
IRDeviceLibUVC(unsigned long serial, int videoFormatIndex)
Standard constructor.