Function: dvpp_set_channel_desc_mode

Applicable Products

Product

Supported

Ascend 950PR/Ascend 950DT

x

Atlas A3 training products/Atlas A3 inference products

√

Atlas A2 training products/Atlas A2 inference 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 Value

Return Value

Description

ret

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