Function: dvpp_get_pic_desc_ret_code

Applicability

Product

Supported (√/x)

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas training products

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

Obtains the image description parameter: return code.

Prototype

  • C Prototype
    1
    uint32_t acldvppGetPicDescRetCode(const acldvppPicDesc *picDesc)
    
  • Python Function
    1
    ret_code = acl.media.dvpp_get_pic_desc_ret_code(dvpp_pic_desc)
    

Parameter Description

Parameter

Description

dvpp_pic_desc

Int, pointer address of the image description.

Return Value Description

Return Value

Description

ret

Int, error code: 0 on success; else, failure.

During VDEC decoding, call acl.media.dvpp_get_pic_desc_ret_code to obtain the ret_code return code to check the decoding result. If the decoding fails, locate the fault based on the return code in the log. For details about the return codes, see Return Codes. Some of the ret_code return codes are defined in hexadecimal format. If you want to print the return code values in decimal format (for example, 65540) during encoding, convert the return code values into the hexadecimal format (for example, 0x10004) in advance and then query the return codes in Return Codes.