23 std::unique_ptr<ContextImpl> impl_;
50 void enableNetDeviceEnumeration(
bool enable);
59 std::shared_ptr<
Device> createNetDevice(const
char *address, uint16_t port);
67 void changeNetDeviceIpConfig(const
char *deviceUid, const
OBNetIpConfig &config);
83 void enableDeviceClockSync(uint64_t repeatInterval);
84#define enableMultiDeviceSync enableDeviceClockSync
#define OB_DEFAULT_DECRYPT_KEY
The default Decrypt Key.
enum UVC_BACKEND OBUvcBackend
OBLogSeverity
log level, the higher the level, the stronger the log filter
Provides SDK structure and enumeration constant definitions (depending on libobsensor/h/ObTypes....
static void setLoggerSeverity(OBLogSeverity severity)
Set the level of the global log, which affects both the log level output to the terminal and output t...
static void setLoggerToConsole(OBLogSeverity severity)
Set log output to the terminal.
virtual ~Context() noexcept
static void loadLicense(const char *filePath, const char *key=OB_DEFAULT_DECRYPT_KEY)
Loads a license file.
static void setLoggerToCallback(OBLogSeverity severity, LogCallback callback)
Set the logger to callback.
std::function< void(std::shared_ptr< DeviceList > removedList, std::shared_ptr< DeviceList > addedList)> DeviceChangedCallback
std::function< void(OBLogSeverity severity, const char *logMsg)> LogCallback
Log output callback function.
void freeIdleMemory()
Frees idle memory from the internal frame memory pool.
void setUVCBackend(OBUvcBackend uvcBackend)
Set the UVC backend for the specified context This function configures the Universal Video Class (UVC...
Context(const char *configPath="")
The Context class is a management class that describes the runtime of the SDK. It is responsible for ...
static void loadLicenseFromData(const char *data, uint32_t dataLen, const char *key=OB_DEFAULT_DECRYPT_KEY)
Loads a license from data.
static void setLoggerToFile(OBLogSeverity severity, const char *directory)
Set log output to a file.
A class describing device information, representing the name, id, serial number and other basic infor...
Class representing a list of devices.
IP address configuration for network devices (IPv4)