orbbec-sdk-sys 0.1.2+2.5.5

Low-level Rust bindings for https://github.com/orbbec/OrbbecSDK_v2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// Copyright (c) Orbbec Inc. All Rights Reserved.
// Licensed under the MIT License.

#include "NetPortGroup.hpp"

namespace libobsensor {
bool GroupNetSourcePortByMac(const std::shared_ptr<const SourcePortInfo> &port0, const std::shared_ptr<const SourcePortInfo> &port1) {
    auto netPort0 = std::dynamic_pointer_cast<const NetSourcePortInfo>(port0);
    auto netPort1 = std::dynamic_pointer_cast<const NetSourcePortInfo>(port1);
    return netPort0->mac == netPort1->mac;
}
}  // namespace libobsensor