ReadImage
Function Usage
Dumps the image file to the MxstBufferInput object. The size of the image file to be read ranges from 1 B to 4 GB and defaults to 1 GB. You can set the maximum value using malloc_max_data_size in the SDK configuration file sdk.conf. malloc_max_data_size indicates the maximum size of the memory that can be allocated by the SDK. Set the value as required. After the file size is read successfully, manually destroy the obtained data by using the free method.
Prototype
static MxstBufferInput ReadImage(const std::string& imagePath);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
imagePath |
Input |
Image file path |
Return Parameter Description
Data Structure |
Description |
|---|---|
MxstBufferInput |
Input data structure of the stream object |
Parent topic: DataHelper