MxstBufferOutput
Description
Defines the structure of buffer received by the stream.
Structure Definition
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | struct MxstBufferOutput { APP_ERROR errorCode = APP_ERR_OK; std::string errorMsg; int dataSize = 0; uint32_t *dataPtr = nullptr; void *reservedPtr = nullptr; MxTools::MxpiFrameInfo mxpiFrameInfo; MxstBufferOutput() = default; explicit MxstBufferOutput(APP_ERROR errorCode, const std::string& errorMsg = "") : errorCode(errorCode), errorMsg(std::move(errorMsg)) {} MxstBufferOutput(const MxstBufferOutput&) = delete; MxstBufferOutput& operator=(const MxstBufferOutput&) = delete; void SetErrorInfo(APP_ERROR errorCodeIn, const std::string& errorMsgIn) { errorCode = errorCodeIn; errorMsg = errorMsgIn; } ~MxstBufferOutput() { if (dataPtr != nullptr) { free(dataPtr); dataPtr = nullptr; } } }; |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
errorCode |
Input |
Error code |
errorMsg |
Input |
Error message |
dataSize |
Input |
Data size of the output buffer. The size must be the same as the actual size. Otherwise, a core dump may occur. |
dataPtr |
Input |
Pointer to the output buffer data |
mxpiFrameInfo |
Input |
Basic information about the output buffer |
reservedPtr |
Input |
Reserved pointer |
Parent topic: Process Orchestration Data Structures