Creates an image processing channel, which is reusable. After being destroyed, the channel is no longer available. This API is synchronous.
When creating a channel, observe the restrictions of aclrtCreateStream, such as the number of streams.
aclError acldvppCreateChannel(acldvppChannelDesc *channelDesc)
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.) |
0 on success; else, failure.
For details about the API call sequence and example, see Media Data Processing V1.