DvppPngDecode
Function Usage
Decodes PNG formats. Before calling this API, call Init() or Init(MxbaseDvppChannelMode dvppChannelMode) to initialize this function.
Prototype
APP_ERROR DvppPngDecode(
DvppDataInfo& inputDataInfo,
DvppDataInfo& outputDataInfo
);
APP_ERROR DvppPngDecode(
const std::string& inputPicPath,
DvppDataInfo& outputDataInfo
);
Parameter Description
Parameter |
Input/Output |
Description |
|---|---|---|
inputDataInfo |
Input |
Decoded data |
inputPicPath |
Input |
Path of the image to be decoded |
outputDataInfo |
Output |
Output data after decoding The value range of outputDataInfo.dataSize is [1, 1073741824]. |
Return Parameter Description
Data Structure |
Description |
|---|---|
APP_ERROR |
Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file. |
Parent topic: DvppWrapper