Function: dvpp_set_pic_desc_format

Description

Sets the image description parameter: image format.

Prototype

  • C Prototype
    1
    aclError acldvppSetPicDescFormat(acldvppPicDesc *picDesc, acldvppPixelFormat format)
    
  • Python Function
    1
    ret = acl.media.dvpp_set_pic_desc_format(dvpp_pic_desc, format)
    

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.

format

Int, image format. For details, see acldvppPixelFormat.

Return Value

Return Value

Description

ret

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