Function: dvpp_set_channel_desc_mode

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

x

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

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 Values

Return Value

Description

ret

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