Go to the documentation of this file.
13 #include <bnb/utils/defs.hpp>
19 namespace bnb {
namespace interfaces {
25 static void initialize(
const std::vector<std::string> & resource_paths,
const std::string & client_token);
27 static void release();
50 static ::bnb::interfaces::hardware_class get_hardware_class();
52 static void set_log_level(::bnb::interfaces::severity_level level);
59 static void set_log_record_callback(
const std::shared_ptr<::bnb::interfaces::log_record_callback> & cb, ::bnb::interfaces::severity_level lvl);
static void add_resource_path(const std::string &resource_path)
Add resources search path.
static std::string cpu_env()
Get information about CPU capabilities.
static std::string get_banuba_sdk_version_string()
Returns SDK version as string.
static void diagnostic_crash()
Diagnostic crash.
static int32_t get_banuba_sdk_version()
Returns SDK version as number major = version / 10000000 minor = (version - major * 10000000) / 10000...
static bool check_banuba_sdk_nn_version()
Checks if the current version of NN resources is equal to Banuba SDK expected NN resources version.
static void remove_resource_path(const std::string &resource_path)
Remove resources search path.
static void load_gl_functions()
load GL functions, for dynamic libraries only should be called with active GL context
static std::string get_banuba_sdk_nn_version_string()
The Banuba SDK tracks the resource version of Neural Networks (NN) resources it built for.
static std::string get_banuba_sdk_nn_version_archive_string()
The Banuba SDK supports external NN resources archives.
static int32_t get_banuba_sdk_nn_version()
Returns NN version as number major = version / 10000000 minor = (version - major * 10000000) / 100000...
static void set_log_record_callback(const std::shared_ptr<::bnb::interfaces::log_record_callback > &cb, ::bnb::interfaces::severity_level lvl)
Set callback to recieve log events from Banuba SDK.
static bool check_banuba_sdk_nn_version_ignore_patch()
Checks if Banuba SDK treats as valid the version of external NN resources.