Function: dvpp_create_channel
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
x |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Description
Creates an image processing channel, which is reusable. After being destroyed, the channel is no longer available.
Prototype
- C Prototype
1aclError acldvppCreateChannel(acldvppChannelDesc *channelDesc)
- Python Function
1ret = acl.media.dvpp_create_channel(dvpp_channel_desc)
Parameters
|
Parameter |
Description |
|---|---|
|
dvpp_channel_desc |
Int, pointer address of the channel description. The input data is created by calling acl.media.dvpp_create_channel_desc. In addition, for the |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 on success; else, failure. |
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.
- The acl.media.dvpp_create_channel API calls the acl.rt.create_stream API once to create a stream. The stream is used to create a stream task. After the stream creation task is complete, the stream resources are automatically released.
When creating a stream, you must comply with the constraints of the acl.rt.create_stream API, for example, the number of streams.