Function: vdec_set_channel_desc_channel_id

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

Sets the decoding channel description attribute: decoding channel ID.

Prototype

  • C Prototype
    1
    aclError aclvdecSetChannelDescChannelId(aclvdecChannelDesc *channelDesc, uint32_t channelId)
    
  • Python Function
    1
    ret = acl.media.vdec_set_channel_desc_channel_id(vdec_channel_desc, channel_id)
    

Parameters

Parameter

Description

vdec_channel_desc

Int, pointer address of the description of a video decoding channel.

Call acl.media.vdec_create_channel_desc to create data of the aclvdecChannelDesc type in advance.

channel_id

Int, channel ID.

For the Atlas training product, the value range is [0, 31].

For the Atlas 200I/500 A2 inference product, the value range is [0, 255].

For the Atlas A2 training product/Atlas A2 inference product, the value range is [0, 255].

For the Atlas inference product, the value range is [0, 255].

For the Atlas A3 training product/Atlas A3 inference product, the value range is [0, 255].

Return Value

Return Value

Description

ret

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