Function: dvpp_set_stream_desc_size

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

Sets the video stream description parameter: the size of the video stream data memory.

Prototype

  • C Prototype
    1
    aclError acldvppSetStreamDescSize(acldvppStreamDesc *streamDesc, uint32_t size)
    
  • Python Function
    1
    ret = acl.media.dvpp_set_stream_desc_size(dvpp_stream_desc, size)
    

Parameter Description

Parameter

Description

dvpp_stream_desc

Int, pointer address of the video stream description.

Call acl.media.dvpp_create_stream_desc to create data of the acldvppStreamDesc type in advance.

size

Int, memory size, in bytes.

Return Value Description

Return Value

Description

ret

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