Function: dvpp_create_channel
Applicability
|
Product |
Supported (√/x) |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
Function Usage
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)
Parameter Description
|
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 Description
|
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.
- Do not use a channel concurrently across streams.
- 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.