refactor(synthetic): make switch of disable copy and disable unnessary copy
This commit is contained in:
@@ -364,6 +364,10 @@ void Synthetic::InitProcessors() {
|
||||
return;
|
||||
}
|
||||
|
||||
root_processor->addTargetStreams(
|
||||
{Stream::LEFT, Mode::MODE_OFF, nullptr});
|
||||
root_processor->addTargetStreams(
|
||||
{Stream::RIGHT, Mode::MODE_OFF, nullptr});
|
||||
rectify_processor->addTargetStreams(
|
||||
{Stream::LEFT_RECTIFIED, Mode::MODE_OFF, nullptr});
|
||||
rectify_processor->addTargetStreams(
|
||||
@@ -376,10 +380,6 @@ void Synthetic::InitProcessors() {
|
||||
{Stream::POINTS, Mode::MODE_OFF, nullptr});
|
||||
depth_processor->addTargetStreams(
|
||||
{Stream::DEPTH, Mode::MODE_OFF, nullptr});
|
||||
root_processor->addTargetStreams(
|
||||
{Stream::LEFT, Mode::MODE_OFF, nullptr});
|
||||
root_processor->addTargetStreams(
|
||||
{Stream::RIGHT, Mode::MODE_OFF, nullptr});
|
||||
|
||||
processors_.push_back(root_processor);
|
||||
processors_.push_back(rectify_processor);
|
||||
@@ -421,7 +421,8 @@ bool Synthetic::OnDeviceProcess(
|
||||
Object *const in, Object *const out,
|
||||
std::shared_ptr<Processor> const parent) {
|
||||
MYNTEYE_UNUSED(parent)
|
||||
return GetStreamEnabledMode(Stream::LEFT) != MODE_ON;
|
||||
return GetStreamEnabledMode(Stream::LEFT) != MODE_ON
|
||||
|| GetStreamEnabledMode(Stream::RIGHT) != MODE_ON;
|
||||
}
|
||||
|
||||
bool Synthetic::OnRectifyProcess(
|
||||
@@ -431,8 +432,8 @@ bool Synthetic::OnRectifyProcess(
|
||||
if (plugin_ && plugin_->OnRectifyProcess(in, out)) {
|
||||
return true;
|
||||
}
|
||||
return GetStreamEnabledMode(Stream::LEFT_RECTIFIED) != MODE_ON;
|
||||
// && GetStreamEnabledMode(Stream::RIGHT_RECTIFIED) != MODE_ON
|
||||
return GetStreamEnabledMode(Stream::LEFT_RECTIFIED) != MODE_ON
|
||||
&& GetStreamEnabledMode(Stream::RIGHT_RECTIFIED) != MODE_ON;
|
||||
}
|
||||
|
||||
bool Synthetic::OnDisparityProcess(
|
||||
|
||||
Reference in New Issue
Block a user