Function: vdec_create_channel

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

x

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

√

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

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.

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

Return Values

Return Value

Description

ret

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

Constraints

Reference

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