Function: dvpp_get_pic_desc_ret_code

Applicability

Product

Supported (Yes/No)

Atlas 350 Accelerator Card

x

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas training product

Atlas inference product

Atlas 200I/500 A2 inference product

Description

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)
    

Parameters

Parameter

Description

dvpp_pic_desc

Int, pointer address of the image description.

Return Value

Return Value

Description

ret

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

During VDEC decoding, you need to call the acl.media.dvpp_get_pic_desc_ret_code API to obtain the ret_code return code to determine whether the decoding is successful. If the decoding fails, locate the fault based on the return code in the log. For details about the return code, see Return Codes. Some return codes in ret_code are defined in hexadecimal format. If a user prints the return code value (for example, 65540) in decimal format during encoding, the value must be converted to a hexadecimal number (for example, 0x10004) before being queried in Return Codes.