acldvppCreateChannel
Description
Creates an image processing channel, which is reusable. After being destroyed, the channel is no longer available. This API is synchronous.
Restrictions
- Channels are thread-unsafe, that is, a separate channel should be created for each thread.
- Do not use a channel concurrently across streams.
- acldvppCreateChannel API creates a stream internally by calling aclrtCreateStream once. The stream is used for the channel creation task and when the task is complete, the stream is automatically destroyed.
When creating a channel, observe the restrictions of aclrtCreateStream, such as the number of streams.
Prototype
aclError acldvppCreateChannel(acldvppChannelDesc *channelDesc)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
channelDesc |
Input/Output |
Pointer to the channel description. Call acldvppCreateChannelDesc to create data of the acldvppChannelDesc type in advance. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: VPC/JPEGD/JPEGE/PNGD Channel