5using namespace System::Runtime::InteropServices;
65 SbRgba(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
82 SbBgra(
unsigned char b,
unsigned char g,
unsigned char r,
unsigned char a);
445 static SbError StringCopyToNative(
char*
const dst,
int dst_size, String^ src);
446 static String^ StringCopyFromNative(
const char*
const src);
447 static String^ StringCopyFromNative(
char*
const src);
454#include "cs_folder.h"
455#include "cs_license.h"
457#include "cs_sample.h"
462#include "cs_project.h"
463#include "cs_solution.h"
bgra class that wraps the sb_t_bgra structure
unsigned char g
green component of color
unsigned char a
trasparency of color
unsigned char b
blue component of color
unsigned char r
red component of color
Characteristics of a computing device. It wraps the sb_t_device_info structure.
SbMemoryInfo memory
Memory information of the device and the process.
int id
Identifier of the device.
SbDeviceType type
Device type.
String compute_capability
Device CUDA Compute capability.
static SbError Release()
Releases all the resources allocated in the library
static SbError CheckMemoryLeak()
Checks if the library has a memory leak.
static String SbInitNoLicenseKey
SB_INIT_NO_LICENSE_KEY
static SbError InitDl(String^ search_path)
Init the Deep Learning SB Library. The function enables the SbProject::Detection and SVL functions fo...
static String SbInitOnlySbLicenseKey
SB_INIT_ONLY_SB_LICENSE_KEY
static String SbInitOnlyHwLicenseKey
SB_INIT_ONLY_HW_LICENSE_KEY
static SbError CheckMemoryLeakReset()
Resets the memory leak control
static SbError Init(String ^ license_file)
Init the SB Library. The function initializes all the functionalities of the library including the li...
static String FormatDeviceType(SbDeviceType value)
Returns the device type description.
static SbInfo GetInfo(int gpu_info)
The function gets information of the sb library and the available computational devices
Info class that wraps the sb_t_info structure. You must call the Dispose() method to free all the re...
signed long long malloc_size_max
Maximum allocated memory, expressed in bytes, by sb the library. sb_t_info.malloc_size_max
int dl_modules_enabled
Value is different from 0 if Deep Learning modules are enabled. sb_t_info.dl_modules_enabled
SbVersion version
Version of the sb library. sb_t_info.version
String compile_time
String of the compile time of the sb library sb_t_info.compile_time
SbError Refresh(int gpu_info)
Refresh the sb library information
String Format()
Formats SbInfo parameters in a string.
array< SbDeviceInfo^> devices
Array of available devices sb_t_info.devices
String version_str
String of the version of the sb library. sb_t_info.version_str
String compile_date
String of the compile date of the sb library. sb_t_info.compile_date
signed long long malloc_size
Current allocated memory, expressed in bytes, by sb the library. sb_t_info.malloc_size
Memory information. It wraps the sb_t_memory_info structure.
signed long long proc_virtual_max
maximum virtual memory usable by the process, in bytes
signed long long system_total
system physical memory, in bytes
signed long long proc_virtual_used
virtual memory used by process, in bytes
signed long long proc_physical_used_max
maximum physical memory used by the process, in bytes
signed long long system_free
system free physical memory, in bytes
signed long long proc_virtual_used_max
maximum virtual memory used by the process, in bytes
signed long long proc_physical_used
physical memory used by the process, in bytes
signed long long system_used
system used physical memory, in bytes
Point class that wraps the sb_t_point2d_f structure
String ToString() override
Formats the sample coordinate in a readable string (x;y).
Point class that wraps the sb_t_point structure
String ToString() override
Formats the sample coordinate in a readable string (x;y).
Range value class that wraps the sb_t_range_flt structure
String ToString() override
Formats the range in a readable string (min;max).
Range value class that wraps the sb_t_range structure
String ToString() override
Formats the range in a readable string (min;max).
Rectangle class that wraps the sb_t_rect structure
int x
x coordinate of the upper left corner of the rectangle
int y
y coordinate of the upper left corner of the rectangle
int width
width of the rectangle
String ToString() override
Formats the rectangle in a readable string ul=(x;y) size=(width;height).
int height
height of the rectangle
rgba class that wraps the sb_t_rgba structure
unsigned char r
red component of color
unsigned char g
green component of color
unsigned char b
blue component of color
unsigned char a
trasparency of color
Size class that wraps the sb_t_size_flt structure
String ToString() override
Formats the size in a readable string (width;height).
Size class that wraps the sb_t_size structure
String ToString() override
Formats the size in a readable string (width:height).
Version class that wraps the sb_t_version structure
int major
major number, changes when there are new features
int build_major
build_major number, changes every time the library is built
int vminor
vminor number, changes on internal improvement which doesn't modify the interface
int minor
minor number, changes when the interface is no longer compatible
String ToString() override
SbDeviceType
Device type that wraps the sb_t_device_type enum
#define SB_INIT_ONLY_HW_LICENSE_KEY
Use this define with sb_init in order to manage only hardware license keys.
#define SB_INIT_NO_LICENSE_KEY
Use this define with sb_init in order to not manage license keys.
#define SB_INIT_ONLY_SB_LICENSE_KEY
Use this define with sb_init in order to manage only SqueezeBrains software license keys.
SqueezeBrains libraries header file.
Defines the color in the format BGRA.
Information about a computing device.
General information about sb library and computing devices like CPU and GPUs.
Represents an ordered pair of float x and y coordinates that defines a point in a two-dimensional pla...
Represents an ordered pair of integer x and y coordinates that defines a point in a two-dimensional p...
Represents an ordered pair of float minimum and maximum values that defines a range.
Represents an ordered pair of 32 bits signed integer minimum and maximum values that defines a range.
Defines the position and size of a rectangle in a two-dimensional plane.
Defines the color in the format RGBA.
Represents an ordered pair of float x and y length that defines a rectangle in a two-dimensional plan...
Represents an ordered pair of integer x and y length that defines a rectangle in a two-dimensional pl...