Function: dvpp_create_channel

C Prototype

aclError acldvppCreateChannel(acldvppChannelDesc *channelDesc)

Python Function

ret = acl.media.dvpp_create_channel(dvpp_channel_desc)

Function Usage

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

Input Description

dvpp_channel_desc: int, pointer address of the channel description. The input data is created by calling acl.media.dvpp_create_channel_desc.

Return Value

ret: int, error code.

Restrictions

  • Channels are thread-unsafe, that is, a separate channel should be created for each thread.
  • A channel cannot be used concurrently across streams at the same time.
  • acl.media.dvpp_create_channel creates a stream internally by calling acl.rt.create_stream once. The stream is used for a channel creation task, and is automatically destroyed when the task is complete.

    When creating a channel, observe the restrictions of acl.rt.create_stream, such as the number of streams.

Reference

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