update OrbbecSDK version to 2.7.7

This commit is contained in:
ob-yalian
2026-03-16 15:33:56 +08:00
parent e2ae1540b9
commit ae3480c2a2
20 changed files with 174 additions and 13 deletions
@@ -130,6 +130,33 @@ public:
return res;
}
/**
* @brief Set the GVCP port scheme used for network device discovery and control.
*
* @param[in] scheme Target GVCP port scheme.
* Thrown exception if the specified scheme is invalid or unsupported.
*
* @note This change affects only the current session and is not persisted.
* @note Switching to a different scheme will force disconnection of all currently connected network devices.
*/
void setGvcpPortScheme(OBGvcpPortScheme scheme) {
ob_error *error = nullptr;
ob_set_gvcp_port_scheme(impl_, scheme, &error);
Error::handle(&error);
}
/**
* @brief Get the current GVCP port scheme.
*
* @return Current GVCP port scheme.
*/
OBGvcpPortScheme getGvcpPortScheme() const {
ob_error *error = nullptr;
auto scheme = ob_get_gvcp_port_scheme(impl_, &error);
Error::handle(&error);
return scheme;
}
/**
* @brief Creates a network device with the specified IP address and port.
*
@@ -1351,6 +1351,38 @@ public:
return gateway;
}
/**
* @brief Get the name of the host network interface corresponding to the device at the specified index.
*
* @attention Returns "unknown" for USB devices or non-network devices.
*
* @param[in] index The index of the device.
*
* @return const char* The host network interface name (e.g., "eth0", "en0").
*/
const char* getLocalNetInterfaceName(uint32_t index) const {
ob_error *error = nullptr;
auto netItfName = ob_device_list_get_device_local_net_if_name(impl_, index, &error);
Error::handle(&error);
return netItfName;
}
/**
* @brief Get the current IP configuration mode of the device at the specified index.
*
* @attention Only valid for Ethernet devices, otherwise it will return OB_IP_SOURCE_NONE.
*
* @param[in] index The index of the device.
*
* @return OBCurIpConfig The active IP configuration mode (e.g. DHCP, LLA, or Persistent IP).
*/
OBIpSourceType getIpSourceType(uint32_t index) const {
ob_error *error = nullptr;
auto ipSrcType = ob_device_list_get_device_ip_source_type(impl_, index, &error);
Error::handle(&error);
return ipSrcType;
}
/**
* @brief Get the device object at the specified index
*