DvppVdec

Function Usage

Decodes H.264/H.265 videos. Before calling this API, call InitVdec() to initialize the video decoding function.

Prototype

APP_ERROR DvppVdec(DvppDataInfo& inputDataInfo, void* userData);

Parameter Description

Parameter

Input/Output

Description

inputDataInfo

Input

Decoded data.

  • The value range of inputDataInfo.width is [128, 4096].
  • The value range of inputDataInfo.height is [128, 4096].
  • The value of inputDataInfo.data cannot be empty and the value of inputDataInfo.dataSize cannot be 0.

userData

Input

Customized data.

Return Parameter Description

Data Structure

Description

APP_ERROR

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