2018-04-04 05:50:27 +03:00
|
|
|
#include "device/device.h"
|
|
|
|
|
|
|
|
#include <glog/logging.h>
|
|
|
|
|
2018-04-04 06:38:36 +03:00
|
|
|
#include "internal/strings.h"
|
2018-04-04 05:50:27 +03:00
|
|
|
#include "uvc/uvc.h"
|
|
|
|
|
|
|
|
MYNTEYE_BEGIN_NAMESPACE
|
|
|
|
|
|
|
|
Device::Device() {
|
|
|
|
VLOG(2) << __func__;
|
|
|
|
}
|
|
|
|
|
|
|
|
Device::~Device() {
|
|
|
|
VLOG(2) << __func__;
|
|
|
|
}
|
|
|
|
|
|
|
|
std::shared_ptr<Device> Device::Create(
|
|
|
|
const std::string &name, std::shared_ptr<uvc::device> device) {
|
2018-04-04 06:38:36 +03:00
|
|
|
if (name == "MYNTEYE") {
|
|
|
|
} else if (strings::starts_with(name, "MYNT-EYE-")) {
|
|
|
|
// TODO(JohnZhao): Create different device by name, such as MYNT-EYE-S1000
|
|
|
|
}
|
2018-04-04 05:50:27 +03:00
|
|
|
return nullptr;
|
|
|
|
}
|
|
|
|
|
|
|
|
MYNTEYE_END_NAMESPACE
|