Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
ivcam
ivcam-private.cpp
Go to the documentation of this file.
1
// License: Apache 2.0. See LICENSE file in root directory.
2
// Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3
4
#include "
ivcam-private.h
"
5
6
7
namespace
librealsense
8
{
9
namespace
ivcam
10
{
11
bool
try_fetch_usb_device
(std::vector<platform::usb_device_info>&
devices
,
12
const
platform::uvc_device_info
&
info
,
platform::usb_device_info
&
result
)
13
{
14
for
(
auto
it
= devices.begin();
it
!= devices.end(); ++
it
)
15
{
16
if
(
it
->unique_id == info.
unique_id
)
17
{
18
19
result = *
it
;
20
if
(result.
mi
== 4 || result.
mi
== 2)
21
{
22
devices.erase(
it
);
23
return
true
;
24
}
25
}
26
}
27
return
false
;
28
}
29
}
// namespace librealsense::ivcam
30
}
// namespace librealsense
librealsense::platform::usb_device_info
Definition:
usb-types.h:136
librealsense::platform::uvc_device_info
Definition:
backend.h:179
librealsense::ivcam::try_fetch_usb_device
bool try_fetch_usb_device(std::vector< platform::usb_device_info > &devices, const platform::uvc_device_info &info, platform::usb_device_info &result)
Definition:
ivcam-private.cpp:11
rspy.test.info
def info(name, value, persistent=False)
Definition:
test.py:301
librealsense
Definition:
calibration-model.h:6
ivcam-private.h
test-fg.devices
devices
Definition:
test-fg.py:9
librealsense::platform::uvc_device_info::unique_id
std::string unique_id
Definition:
backend.h:185
it
static auto it
Definition:
openvino-face-detection.cpp:372
result
GLuint64EXT * result
Definition:
glext.h:10921
librealsense::platform::usb_device_info::mi
uint16_t mi
Definition:
usb-types.h:142
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:20