DvppJpegDecode

Function Usage

Decodes JPEG formats. Before calling this API, call Init() or Init(MxbaseDvppChannelMode dvppChannelMode) to initialize this function.

Prototype

APP_ERROR DvppJpegDecode(  
    DvppDataInfo& inputDataInfo,  
    DvppDataInfo& outputDataInfo  
);

APP_ERROR DvppJpegDecode(
    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.