GetPictureDec

Function Usage

Obtains the width, height, and number of color channels of an input image.

Prototype

APP_ERROR GetPictureDec(DvppImageInfo& imageInfo, DvppImageOutput& imageOutput);

Parameter Description

Parameter

Input/Output

Description

imageInfo

Input

Format of the input image, address of the memory for storing JPEG image data, and memory size (in bytes).

Memory address for storing JPEG image data must be located on the host instead of DVPP.

imageOutput

Output

Image width, height, and number of color channels.

Return Parameter Description

Data Structure

Description

APP_ERROR

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