CreateDeviceBuffer
Function Usage
Creates the MxpiBuffer (data structure transferred between plugins). This API allocates the device memory of a specified size based on the memory size specified by the user and device ID. The device memory data, memory size, and device ID are stored in the metadata.
Prototype
1 | static MxpiBuffer* MxpiBufferManager::CreateDeviceBuffer(const InputParam& inputParam); |
Description
Parameter |
Description |
|---|---|
inputParam |
Data structure defined by the Buffer API. For details, see InputParam. The key in the inputParam structure cannot be passed to ReserveMetadataGraph, ReservedVisionList, and ErrorInfo. |
Response Parameters
Data Structure |
Description |
|---|---|
MxpiBuffer* |
Data structure transferred between plugins. For details, see MxpiBuffer. |
Parent topic: MxpiBufferManager