DvppJpegPredictDecSize

Function Usage

Predicts the output buffer allocation required for JPEG decoding based on the memory of the input JPEG image.

Prototype

APP_ERROR DvppJpegPredictDecSize(const void *imageData, uint32_t dataSize, MxbasePixelFormat outputPixelFormat, uint32_t &decSize);

Parameter Description

Parameter

Input/Output

Description

imageData

Input

Memory address for storing JPEG image data on the host. It cannot be the memory address on the device.

dataSize

Input

Memory size, in bytes.

outputPixelFormat

Input

Format of the decoded output image.

decSize

Output

Predicted allocation in bytes for the output image.

Return Parameter Description

Data Structure

Description

APP_ERROR

Error code returned during program execution. For details, see the MxBase/ErrorCode/ErrorCode.h file.