From a06786c16dedfd3b8dd5bfe271d6756e59b90a34 Mon Sep 17 00:00:00 2001 From: John Zhao Date: Fri, 21 Dec 2018 00:32:22 +0800 Subject: [PATCH] refactor(device_s): todo set img rate according to stream request --- src/mynteye/device/standard/device_s.cc | 5 +++++ src/mynteye/device/standard/device_s.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/mynteye/device/standard/device_s.cc b/src/mynteye/device/standard/device_s.cc index 844365d..36719ba 100644 --- a/src/mynteye/device/standard/device_s.cc +++ b/src/mynteye/device/standard/device_s.cc @@ -36,6 +36,11 @@ std::shared_ptr StandardDevice::CreateStreamsAdapter() const { return std::make_shared(); } +void StandardDevice::StartVideoStreaming() { + // TODO(John) Set img framerate, imu frequency according to stream request + Device::StartVideoStreaming(); +} + void StandardDevice::OnStereoStreamUpdate() { if (motion_tracking_) { auto &&motions = this->motions(); diff --git a/src/mynteye/device/standard/device_s.h b/src/mynteye/device/standard/device_s.h index 5822489..855e611 100644 --- a/src/mynteye/device/standard/device_s.h +++ b/src/mynteye/device/standard/device_s.h @@ -30,6 +30,8 @@ class StandardDevice : public Device { Capabilities GetKeyStreamCapability() const override; std::shared_ptr CreateStreamsAdapter() const override; + void StartVideoStreaming() override; + void OnStereoStreamUpdate() override; };