optris::sdk::Buffers
Memory you own that the SDK writes each frame into, so a frame does not have to be copied to reach you.
A handle, not an owner. Reached through Imager::Buffers().
On unified-memory platforms -- NVIDIA Jetson -- a cudaMallocManaged pointer gives true zero-copy hand-off to GPU inference.
Public functions
Buffers
Buffers(ClientBridge *bridge)
Add
void Add(ExternalBuffer buffer)
Register a buffer. The SDK writes processed frame data straight into it every frame, so a consumer never unpacks a ThermalFrame or an BgraFrame of its own. Several buffers with different formats can be registered at once.
This removes the copy on the consumer's side, not every copy: the frame is still built internally and then written out here.
The pointer must stay valid until it is removed or the imager is destroyed. The SDK fills in width and height on registration.
Exceptions
| Name | Description |
|---|---|
ConfigException |
if the buffer is too small for the frame. |
Remove
void Remove(void *data)
Remove a buffer, matched by its data pointer.
Clear
void Clear()