Function: dvpp_set_pic_desc_data

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

Sets the image description parameter: image data memory.

Prototype

  • C Prototype
    1
    aclError acldvppSetPicDescData(acldvppPicDesc *picDesc, void *dataDev)
    
  • Python Function
    1
    ret = acl.media.dvpp_set_pic_desc_data(dvpp_pic_desc, data_dev)
    

Parameters

Parameter

Description

dvpp_pic_desc

Int, pointer address of the image description.

Call acl.media.dvpp_create_pic_desc to create data of the acldvppPicDesc type in advance.

data_dev

Int, pointer address of the image data memory on the device. The memory must be allocated by calling acl.media.dvpp_malloc.

Return Value

Return Value

Description

ret

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