Creates the MxpiBuffer (data structure transferred between plugins). Users pass the memory address and size, device ID, and device type. The device memory data, memory size, device ID, and device type are stored in the metadata.
1 | static MxpiBuffer* MxpiBufferManager::CreateDeviceBufferWithMemory(const InputParam& inputParam); |
Parameter |
Description |
|---|---|
inputParam |
Data structure defined by the Buffer API. For details, see InputParam. The value range of inputParam.dataSize is [1, 4294967296]. The key in the inputParam structure cannot be passed to ReserveMetadataGraph, ReservedVisionList, and ErrorInfo. |
Data Structure |
Description |
|---|---|
MxpiBuffer* |
Data structure transferred between plugins. For details, see MxpiBuffer. |