Functions | |
bool | check (const char *call, HRESULT hr, bool to_throw) |
std::shared_ptr< backend > | create_backend () |
std::shared_ptr< hid_device > | create_rshid_device (hid_device_info info) |
std::shared_ptr< uvc_device > | create_rsuvc_device (uvc_device_info info) |
long | from_100micros (long val) |
void | get_block_range (const std::vector< usb_descriptor > &descs, int mi, int &begin, int &end) |
static uint32_t | get_dev_capabilities (const std::string dev_name) |
USB_DEVICE_DESCRIPTOR | get_device_descriptor (WINUSB_INTERFACE_HANDLE handle) |
std::vector< uint8_t > | get_device_descriptors (WINUSB_INTERFACE_HANDLE handle) |
std::string | get_device_path (libusb_device *usb_device) |
bool | get_id (DEVINST devinst, std::string *p_out_str) |
std::string | get_id (DEVINST devinst) |
usb_device_info | get_info (const std::wstring device_wstr) |
std::wstring | get_path (HANDLE h, ULONG index) |
std::vector< usb_device_info > | get_subdevices (libusb_device *device, libusb_device_descriptor desc) |
static usb_spec | get_usb_connection_type (std::string path) |
bool | get_usb_descriptors (uint16_t device_vid, uint16_t device_pid, const std::string &device_uid, std::string &location, usb_spec &spec, std::string &serial) |
bool | get_usb_device_descriptors (DEVINST devinst, uint16_t device_vid, uint16_t device_pid, const std::string &device_uid, std::string &location, usb_spec &spec, std::string &serial, std::string &parent_uid) |
bool | handle_node (const std::wstring &targetKey, HANDLE h, ULONG index) |
std::tuple< std::string, usb_spec > | handle_usb_hub (const std::wstring &targetKey, const std::wstring &path) |
std::string | hr_to_string (HRESULT hr) |
std::wstring | instance_id_from_device_path (LPCWSTR path) |
void | internal_callback (struct libusb_transfer *transfer) |
static bool | is_heighr_or_equel_to_min_version (std::string api_version, std::string min_api_version) |
bool | is_win10_redstone2 () |
static usb_status | libusb_status_to_rs (int sts) |
PSECURITY_DESCRIPTOR | make_allow_all_security_descriptor (void) |
bool | operator== (const hid_device_info &a, const hid_device_info &b) |
bool | operator== (const stream_profile &a, const stream_profile &b) |
bool | operator== (const uvc_device_info &a, const uvc_device_info &b) |
bool | operator== (const usb_device_info &a, const usb_device_info &b) |
bool | operator== (const playback_device_info &a, const playback_device_info &b) |
bool | operator== (const tm2_device_info &a, const tm2_device_info &b) |
bool | parse_usb_path_from_device_id (uint16_t &vid, uint16_t &pid, uint16_t &mi, std::string &unique_id, const std::string &device_id) |
bool | parse_usb_path_multiple_interface (uint16_t &vid, uint16_t &pid, uint16_t &mi, std::string &unique_id, const std::string &path, std::string &device_guid) |
bool | parse_usb_path_single_interface (uint16_t &vid, uint16_t &pid, std::string &serial, const std::string &path) |
std::vector< std::wstring > | query_by_interface (GUID guid) |
std::vector< std::wstring > | query_by_interface (const std::string &guidStr) |
std::vector< hid_device_info > | query_hid_devices_info () |
std::vector< uvc_device_info > | query_uvc_devices_info () |
void | ReadFromBuffer (control_range &cfg, BYTE *buffer, int length) |
void | req_io_buff (int fd, uint32_t count, std::string dev_name, v4l2_memory mem_type, v4l2_buf_type type) |
template<class T > | |
static void | safe_release (T &ppT) |
STDMETHODIMP_ (ULONG) source_reader_callback | |
void | stream_ctl_on (int fd, v4l2_buf_type type=V4L2_BUF_TYPE_VIDEO_CAPTURE) |
void | stream_off (int fd, v4l2_buf_type type=V4L2_BUF_TYPE_VIDEO_CAPTURE) |
std::string | time_in_HH_MM_SS_MMM () |
bool | tm_boot (const std::vector< usb_device_info > &devices) |
long | to_100micros (long v) |
std::vector< std::string > | tokenize (std::string string, char separator) |
static usb_status | usbhost_status_to_rs (int sts) |
void | uvc_process_bulk_payload (backend_frame_ptr fp, size_t payload_len, backend_frames_queue &queue) |
template<typename T > | |
size_t | vector_bytes_size (const typename std::vector< T > &vec) |
std::string | win_to_utf (const WCHAR *s) |
static usb_status | winusb_status_to_rs (DWORD sts) |
template<typename T > | |
bool | write_fs_attribute (const std::string &path, const T &val) |
static int | xioctl (int fh, unsigned long request, void *arg) |
static int | xioctl (int fh, unsigned long request, void *arg) |
Variables | |
static const pu_control | ct_controls [] |
const std::map< std::string, usb_class > | guids |
const uint32_t | hid_buf_len = 128 |
constexpr uint8_t | hid_header_size = sizeof(hid_header) |
static const pu_control | pu_controls [] |
static const std::map< usb_spec, std::string > | usb_spec_names |
static std::map< usb_status, std::string > | usb_status_to_string |
constexpr uint8_t | uvc_header_size = sizeof(uvc_header) |
typedef std::vector<std::pair<stream_profile, frame_callback> > librealsense::platform::configurations |
Definition at line 485 of file recorder.h.
typedef std::function<void(backend_device_group old, backend_device_group curr)> librealsense::platform::device_changed_callback |
typedef std::function<void(const uvc_device_info&, IMFActivate*)> librealsense::platform::enumeration_callback |
typedef ULONG(__stdcall* librealsense::platform::fnRtlGetVersion) (PRTL_OSVERSIONINFOW lpVersionInformation) |
Definition at line 63 of file win-helpers.cpp.
typedef std::function<void(stream_profile, frame_object, std::function<void()>)> librealsense::platform::frame_callback |
typedef std::function<void(const sensor_data&)> librealsense::platform::hid_callback |
typedef std::shared_ptr<usb_device> librealsense::platform::rs_usb_device |
Definition at line 29 of file usb-device.h.
typedef std::shared_ptr<usb_endpoint> librealsense::platform::rs_usb_endpoint |
Definition at line 24 of file usb-endpoint.h.
typedef std::shared_ptr<usb_interface> librealsense::platform::rs_usb_interface |
Definition at line 31 of file usb-interface.h.
typedef std::shared_ptr<usb_messenger> librealsense::platform::rs_usb_messenger |
Definition at line 26 of file usb-messenger.h.
typedef std::shared_ptr<usb_request> librealsense::platform::rs_usb_request |
Definition at line 41 of file usb-request.h.
typedef std::shared_ptr<usb_request_callback> librealsense::platform::rs_usb_request_callback |
Definition at line 18 of file usb-request.h.
typedef std::tuple< uint32_t, uint32_t, uint32_t, uint32_t> librealsense::platform::stream_profile_tuple |
Enumerator | |
---|---|
RS2_USB_ENDPOINT_DIRECTION_WRITE | |
RS2_USB_ENDPOINT_DIRECTION_READ |
Definition at line 65 of file usb-types.h.
Enumerator | |
---|---|
RS2_USB_ENDPOINT_CONTROL | |
RS2_USB_ENDPOINT_ISOCHRONOUS | |
RS2_USB_ENDPOINT_BULK | |
RS2_USB_ENDPOINT_INTERRUPT |
Definition at line 71 of file usb-types.h.
Definition at line 80 of file usb-types.h.
Definition at line 47 of file usb-types.h.
Enumerator | |
---|---|
RS2_USB_SUBCLASS_VIDEO_CONTROL | |
RS2_USB_SUBCLASS_VIDEO_STREAMING |
Definition at line 105 of file usb-types.h.
|
strong |
Definition at line 20 of file recorder.h.
Enumerator | |
---|---|
Mutex_Succeed | |
Mutex_TotalFailure | |
Mutex_AlreadyExist |
Definition at line 146 of file win-helpers.h.
|
strong |
Enumerator | |
---|---|
uvc | |
usb | |
hid | |
hid_sensor | |
hid_input |
Definition at line 64 of file recorder.cpp.
Enumerator | |
---|---|
HID_REQUEST_GET_REPORT | |
HID_REQUEST_GET_IDLE | |
HID_REQUEST_GET_PROTOCOL | |
HID_REQUEST_SET_REPORT | |
HID_REQUEST_SET_IDLE | |
HID_REQUEST_SET_PROTOCOL |
Definition at line 36 of file hid-types.h.
Enumerator | |
---|---|
e_video_buf | |
e_metadata_buf | |
e_max_kernel_buf_type |
Definition at line 154 of file backend-v4l2.h.
Enumerator | |
---|---|
USB_REQUEST_CODE_GET | |
USB_REQUEST_CODE_SET |
Definition at line 31 of file hid-types.h.
Enumerator | |
---|---|
usb_undefined | |
usb1_type | |
usb1_1_type | |
usb2_type | |
usb2_01_type | |
usb2_1_type | |
usb3_type | |
usb3_1_type | |
usb3_2_type |
Definition at line 112 of file usb-types.h.
bool librealsense::platform::check | ( | const char * | call, |
HRESULT | hr, | ||
bool | to_throw | ||
) |
Definition at line 79 of file win-helpers.cpp.
std::shared_ptr< backend > librealsense::platform::create_backend | ( | ) |
Definition at line 11 of file rsusb-backend-android.cpp.
std::shared_ptr< hid_device > librealsense::platform::create_rshid_device | ( | hid_device_info | info | ) |
Definition at line 38 of file hid-device.cpp.
std::shared_ptr< uvc_device > librealsense::platform::create_rsuvc_device | ( | uvc_device_info | info | ) |
Definition at line 62 of file uvc-device.cpp.
long librealsense::platform::from_100micros | ( | long | val | ) |
Definition at line 489 of file mf-uvc.cpp.
void librealsense::platform::get_block_range | ( | const std::vector< usb_descriptor > & | descs, |
int | mi, | ||
int & | begin, | ||
int & | end | ||
) |
Definition at line 342 of file uvc-parser.cpp.
|
static |
Definition at line 446 of file backend-v4l2.cpp.
USB_DEVICE_DESCRIPTOR librealsense::platform::get_device_descriptor | ( | WINUSB_INTERFACE_HANDLE | handle | ) |
Definition at line 33 of file device-winusb.cpp.
std::vector<uint8_t> librealsense::platform::get_device_descriptors | ( | WINUSB_INTERFACE_HANDLE | handle | ) |
Definition at line 44 of file device-winusb.cpp.
std::string librealsense::platform::get_device_path | ( | libusb_device * | usb_device | ) |
Definition at line 15 of file enumerator-libusb.cpp.
bool librealsense::platform::get_id | ( | DEVINST | devinst, |
std::string * | p_out_str | ||
) |
Definition at line 376 of file win-helpers.cpp.
std::string librealsense::platform::get_id | ( | DEVINST | devinst | ) |
Definition at line 394 of file win-helpers.cpp.
usb_device_info librealsense::platform::get_info | ( | const std::wstring | device_wstr | ) |
Definition at line 81 of file enumerator-winusb.cpp.
std::wstring librealsense::platform::get_path | ( | HANDLE | h, |
ULONG | index | ||
) |
Definition at line 295 of file win-helpers.cpp.
std::vector<usb_device_info> librealsense::platform::get_subdevices | ( | libusb_device * | device, |
libusb_device_descriptor | desc | ||
) |
Definition at line 36 of file enumerator-libusb.cpp.
|
static |
Definition at line 425 of file backend-v4l2.cpp.
bool librealsense::platform::get_usb_descriptors | ( | uint16_t | device_vid, |
uint16_t | device_pid, | ||
const std::string & | device_uid, | ||
std::string & | location, | ||
usb_spec & | spec, | ||
std::string & | serial | ||
) |
Definition at line 511 of file win-helpers.cpp.
bool librealsense::platform::get_usb_device_descriptors | ( | DEVINST | devinst, |
uint16_t | device_vid, | ||
uint16_t | device_pid, | ||
const std::string & | device_uid, | ||
std::string & | location, | ||
usb_spec & | spec, | ||
std::string & | serial, | ||
std::string & | parent_uid | ||
) |
Definition at line 555 of file win-helpers.cpp.
bool librealsense::platform::handle_node | ( | const std::wstring & | targetKey, |
HANDLE | h, | ||
ULONG | index | ||
) |
Definition at line 264 of file win-helpers.cpp.
std::tuple<std::string,usb_spec> librealsense::platform::handle_usb_hub | ( | const std::wstring & | targetKey, |
const std::wstring & | path | ||
) |
Definition at line 320 of file win-helpers.cpp.
std::string librealsense::platform::hr_to_string | ( | HRESULT | hr | ) |
Definition at line 54 of file win-helpers.cpp.
std::wstring librealsense::platform::instance_id_from_device_path | ( | LPCWSTR | path | ) |
Definition at line 427 of file win-helpers.cpp.
void librealsense::platform::internal_callback | ( | struct libusb_transfer * | transfer | ) |
Definition at line 12 of file request-libusb.cpp.
|
static |
Definition at line 367 of file recorder.cpp.
bool librealsense::platform::is_win10_redstone2 | ( | ) |
Definition at line 66 of file win-helpers.cpp.
|
static |
Definition at line 17 of file handle-libusb.h.
PSECURITY_DESCRIPTOR librealsense::platform::make_allow_all_security_descriptor | ( | void | ) |
Definition at line 799 of file win-helpers.cpp.
|
inline |
Definition at line 97 of file hid-types.h.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
bool librealsense::platform::parse_usb_path_from_device_id | ( | uint16_t & | vid, |
uint16_t & | pid, | ||
uint16_t & | mi, | ||
std::string & | unique_id, | ||
const std::string & | device_id | ||
) |
Definition at line 216 of file win-helpers.cpp.
bool librealsense::platform::parse_usb_path_multiple_interface | ( | uint16_t & | vid, |
uint16_t & | pid, | ||
uint16_t & | mi, | ||
std::string & | unique_id, | ||
const std::string & | path, | ||
std::string & | device_guid | ||
) |
Definition at line 132 of file win-helpers.cpp.
bool librealsense::platform::parse_usb_path_single_interface | ( | uint16_t & | vid, |
uint16_t & | pid, | ||
std::string & | serial, | ||
const std::string & | path | ||
) |
Definition at line 186 of file win-helpers.cpp.
std::vector<std::wstring> librealsense::platform::query_by_interface | ( | GUID | guid | ) |
Definition at line 42 of file enumerator-winusb.cpp.
std::vector<std::wstring> librealsense::platform::query_by_interface | ( | const std::string & | guidStr | ) |
Definition at line 73 of file enumerator-winusb.cpp.
std::vector< hid_device_info > librealsense::platform::query_hid_devices_info | ( | ) |
Definition at line 13 of file hid-device.cpp.
std::vector< uvc_device_info > librealsense::platform::query_uvc_devices_info | ( | ) |
Definition at line 40 of file uvc-device.cpp.
void librealsense::platform::ReadFromBuffer | ( | control_range & | cfg, |
BYTE * | buffer, | ||
int | length | ||
) |
Definition at line 329 of file mf-uvc.cpp.
void librealsense::platform::req_io_buff | ( | int | fd, |
uint32_t | count, | ||
std::string | dev_name, | ||
v4l2_memory | mem_type, | ||
v4l2_buf_type | type | ||
) |
Definition at line 480 of file backend-v4l2.cpp.
|
static |
librealsense::platform::STDMETHODIMP_ | ( | ULONG | ) |
Definition at line 155 of file mf-uvc.cpp.
void librealsense::platform::stream_ctl_on | ( | int | fd, |
v4l2_buf_type | type = V4L2_BUF_TYPE_VIDEO_CAPTURE |
||
) |
Definition at line 468 of file backend-v4l2.cpp.
void librealsense::platform::stream_off | ( | int | fd, |
v4l2_buf_type | type = V4L2_BUF_TYPE_VIDEO_CAPTURE |
||
) |
Definition at line 474 of file backend-v4l2.cpp.
std::string librealsense::platform::time_in_HH_MM_SS_MMM | ( | ) |
Definition at line 875 of file backend-v4l2.cpp.
bool librealsense::platform::tm_boot | ( | const std::vector< usb_device_info > & | devices | ) |
long librealsense::platform::to_100micros | ( | long | v | ) |
Definition at line 483 of file mf-uvc.cpp.
std::vector< std::string > librealsense::platform::tokenize | ( | std::string | string, |
char | separator | ||
) |
Definition at line 108 of file win-helpers.cpp.
|
static |
Definition at line 23 of file device-usbhost.h.
void librealsense::platform::uvc_process_bulk_payload | ( | backend_frame_ptr | fp, |
size_t | payload_len, | ||
backend_frames_queue & | queue | ||
) |
Definition at line 42 of file uvc-streamer.cpp.
size_t librealsense::platform::vector_bytes_size | ( | const typename std::vector< T > & | vec | ) |
Definition at line 48 of file win-helpers.cpp.
std::string librealsense::platform::win_to_utf | ( | const WCHAR * | s | ) |
Definition at line 94 of file win-helpers.cpp.
|
static |
Definition at line 16 of file handle-winusb.h.
|
inline |
Definition at line 39 of file backend-hid.h.
|
static |
|
static |
Definition at line 224 of file backend-v4l2.cpp.
|
static |
Definition at line 479 of file mf-uvc.cpp.
const std::map<std::string, usb_class> librealsense::platform::guids |
Definition at line 32 of file enumerator-winusb.cpp.
const uint32_t librealsense::platform::hid_buf_len = 128 |
Definition at line 15 of file backend-hid.h.
constexpr uint8_t librealsense::platform::hid_header_size = sizeof(hid_header) |
|
static |
Definition at line 464 of file mf-uvc.cpp.
|
static |
Definition at line 124 of file usb-types.h.
|
static |
Definition at line 162 of file usb-types.h.
constexpr uint8_t librealsense::platform::uvc_header_size = sizeof(uvc_header) |