Function: vdec_create_channel

Applicability

Product

Supported

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

Creates a video processing channel, which is reusable. After being destroyed, the channel is no longer available.

Prototype

  • C Prototype
    1
    aclError aclvdecCreateChannel(aclvdecChannelDesc *channelDesc)
    
  • Python Function
    1
    ret = acl.media.vdec_create_channel(vdec_channel_desc)
    

Parameters

Parameter

Description

vdec_channel_desc

Int, pointer address of the channel description.

Use the acl.media.vdec_create_channel_desc call to create data of the vdec_channel_desc type, and use the acl.media.vdec_set_channel_desc APIs to set the attributes of the channel description.

Return Value

Return Value

Description

ret

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

Restrictions

Reference

For details about the API call sequence and examples, see Media Data Processing V1.