Add processor and update api

This commit is contained in:
John Zhao
2018-04-26 14:44:47 +08:00
parent 8f10285773
commit b97baae06d
9 changed files with 512 additions and 7 deletions

View File

@@ -2,7 +2,8 @@
#include <glog/logging.h>
#include "api/api.h"
#include "api/processor/processor.h"
#include "device/device.h"
MYNTEYE_BEGIN_NAMESPACE
@@ -14,4 +15,35 @@ Synthetic::~Synthetic() {
VLOG(2) << __func__;
}
bool Synthetic::Supports(const Stream &stream) const {
return api_->device()->Supports(stream);
}
void Synthetic::SetStreamCallback(
const Stream &stream, stream_callback_t callback) {
UNUSED(stream)
UNUSED(callback)
}
bool Synthetic::HasStreamCallback(const Stream &stream) const {
UNUSED(stream)
return false;
}
void Synthetic::StartVideoStreaming() {}
void Synthetic::StopVideoStreaming() {}
void Synthetic::WaitForStreams() {}
api::StreamData Synthetic::GetStreamData(const Stream &stream) {
UNUSED(stream)
return {};
}
std::vector<api::StreamData> Synthetic::GetStreamDatas(const Stream &stream) {
UNUSED(stream)
return {};
}
MYNTEYE_END_NAMESPACE