5 #ifndef LIBREALSENSE_UVC_H 6 #define LIBREALSENSE_UVC_H 30 std::vector<std::shared_ptr<device>>
query_devices(std::shared_ptr<context> context);
75 for(
int i=0; i<20; ++i)
78 catch(...) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); }
86 for(
int i=0; i<20; ++i)
89 catch(...) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); }
97 for(
int i=0; i<20; ++i)
99 try {
set_control(device, xu, ctrl, data, len);
return; }
100 catch(...) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); }
108 for(
int i=0; i<20; ++i)
110 try {
get_control(device, xu, ctrl, data, len);
return; }
111 catch(...) { std::this_thread::sleep_for(std::chrono::milliseconds(50)); }
std::shared_ptr< context > create_context()
void get_pu_control_range(const device &device, int subdevice, rs_option option, int *min, int *max, int *step, int *def)
void claim_aux_interface(device &device, const guid &interface_guid, int interface_number)
void set_subdevice_mode(device &device, int subdevice_index, int width, int height, uint32_t fourcc, int fps, video_channel_callback callback)
GLint GLint GLsizei GLsizei height
bool is_device_connected(device &device, int vid, int pid)
const uint16_t VID_INTEL_CAMERA
GLsizei const GLchar *const * string
rs_option
Defines general configuration controls.
GLbitfield GLuint64 timeout
std::string get_usb_port_id(const device &device)
const uint16_t ZR300_FISHEYE_PID
std::function< void(const unsigned char *data, const int size)> data_channel_callback
void get_control_with_retry(const device &device, const extension_unit &xu, uint8_t ctrl, void *data, int len)
void set_subdevice_data_channel_handler(device &device, int subdevice_index, data_channel_callback callback)
void start_streaming(device &device, int num_transfer_bufs)
void start_data_acquisition(device &device)
void get_extension_control_range(const device &device, const extension_unit &xu, char control, int *min, int *max, int *step, int *def)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const void * data
void stop_streaming(device &device)
GLsizei const GLfloat * value
const uint16_t ZR300_CX3_PID
void claim_interface(device &device, const guid &interface_guid, int interface_number)
int get_pu_control(const device &device, int subdevice, rs_option option)
int get_product_id(const device &device)
void set_pu_control_with_retry(device &device, int subdevice, rs_option option, int value)
void bulk_transfer(device &device, unsigned char endpoint, void *data, int length, int *actual_length, unsigned int timeout)
GLint GLint GLsizei width
void set_control(device &device, const extension_unit &xu, uint8_t ctrl, void *data, int len)
void set_control_with_retry(device &device, const extension_unit &xu, uint8_t ctrl, void *data, int len)
std::vector< std::shared_ptr< device > > query_devices(std::shared_ptr< context > context)
GLuint GLsizei GLsizei * length
void set_pu_control(device &device, int subdevice, rs_option option, int value)
int get_pu_control_with_retry(const device &device, int subdevice, rs_option option)
bool is_pu_control(rs_option option)
void get_control(const device &device, const extension_unit &xu, uint8_t ctrl, void *data, int len)
void stop_data_acquisition(device &device)
std::function< void(const void *frame, std::function< void()> continuation)> video_channel_callback
int get_vendor_id(const device &device)