acldvppCreateChannel

Description

Creates an image processing channel, which is reusable. After being destroyed, the channel is no longer available. This API is synchronous.

Restrictions

Prototype

aclError acldvppCreateChannel(acldvppChannelDesc *channelDesc)

Parameters

Parameter

Input/Output

Description

channelDesc

Input/Output

Pointer to the channel description.

Call acldvppCreateChannelDesc to create data of the acldvppChannelDesc type in advance.

In addition, for the Ascend 310P AI Processor, you need to call acldvppSetChannelDescMode to specify the channel mode in the channel description and specify the function to be implemented by the image data processing channel. Currently, the VPC, JPEGD, PNGD, and JPEGE functions are supported. Unless the channel mode is specified, the system creates all these modes of channels by default, which may occupy more channel resources. (For details about the limit on the number of channels, see Overview.)

Returns

0 on success; else, failure.

See Also

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