Function: dvpp_create_channel
Applicable Products
|
Product |
Supported (√/x) |
|---|---|
|
|
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. Call acl.media.dvpp_create_channel_desc to create the input data. In addition, for |
Return Values
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code: 0 on success; else, failure. |
Constraints
- 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 calls acl.rt.create_stream once to create a stream. This stream is used to create a channel. After the channel creation is complete, the stream resources are automatically released.
When creating a channel, you must comply with the constraints of acl.rt.create_stream, such as the number of streams.