Add get_video_name
This commit is contained in:
parent
30b038a623
commit
2df1ab635a
|
@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
for (size_t i = 0; i < n; i++) {
|
||||
auto device = mynteye_devices[i];
|
||||
auto name = uvc::get_name(*device);
|
||||
auto name = uvc::get_video_name(*device);
|
||||
auto vid = uvc::get_vendor_id(*device);
|
||||
auto pid = uvc::get_product_id(*device);
|
||||
LOG(INFO) << "index: " << i << ", name: " << name << ", vid: " << vid
|
||||
|
|
|
@ -426,10 +426,6 @@ std::vector<std::shared_ptr<device>> query_devices(
|
|||
return devices;
|
||||
}
|
||||
|
||||
std::string get_name(const device &device) {
|
||||
return device.dev_name;
|
||||
}
|
||||
|
||||
int get_vendor_id(const device &device) {
|
||||
return device.vid;
|
||||
}
|
||||
|
@ -438,6 +434,10 @@ int get_product_id(const device &device) {
|
|||
return device.pid;
|
||||
}
|
||||
|
||||
std::string get_video_name(const device &device) {
|
||||
return device.dev_name;
|
||||
}
|
||||
|
||||
void get_control(
|
||||
const device &device, const extension_unit &xu, uint8_t ctrl, void *data,
|
||||
int len) {
|
||||
|
|
|
@ -30,10 +30,11 @@ std::vector<std::shared_ptr<device>> query_devices(
|
|||
std::shared_ptr<context> context);
|
||||
|
||||
// Static device properties
|
||||
std::string get_name(const device &device);
|
||||
int get_vendor_id(const device &device);
|
||||
int get_product_id(const device &device);
|
||||
|
||||
std::string get_video_name(const device &device);
|
||||
|
||||
// Access XU controls
|
||||
void get_control(
|
||||
const device &device, const extension_unit &xu, uint8_t ctrl, void *data,
|
||||
|
|
Loading…
Reference in New Issue
Block a user