Function: dvpp_set_channel_desc_mode

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

x

Atlas inference product

Atlas 200I/500 A2 inference product

Description

Specifies the channel mode in the channel description, and specifies the function to be implemented by the image data processing channel, including VPC, JPEGD, JPEGE, and PNGD.

Prototype

  • C Prototype
    1
    aclError acldvppSetChannelDescMode(acldvppChannelDesc *channelDesc, uint32_t mode)
    
  • Python Function
    1
    ret =  acl.media.dvpp_set_channel_desc_mode(dvpp_channel_desc, mode)
    

Parameters

Parameter

Description

dvpp_channel_desc

Int, pointer address of the channel description.

Call acl.media.dvpp_create_channel_desc in advance to create acldvppChannelDesc data.

mode

Int, channel mode. For details, see acldvppChannelMode.

Return Value

Return Value

Description

ret

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