aclvencCreateChannel
Applicability
|
Product |
Supported |
|---|---|
|
|
x |
|
|
x |
|
|
√ |
|
|
√ |
|
|
x |
Description
Creates a video encoding channel, which is reusable. After being destroyed, the channel is no longer available.
Restrictions
- Channels are thread-unsafe, that is, a separate channel should be created for each thread.
- The restrictions on the number of channels are described in Overview.
- Two streams are created by calling aclrtCreateStream twice. One is for the video stream encoding task, and the other is for processing the callback function. These streams can be automatically destroyed only after the channel is destroyed by calling aclvencDestroyChannel.
When implementing the VENC function, observe the restrictions of aclrtCreateStream, such as the number of streams.
Prototype
aclError aclvencCreateChannel(aclvencChannelDesc *channelDesc)
Parameters
|
Parameter |
Input/Output |
Description |
|---|---|---|
|
channelDesc |
Input/Output |
Pointer to the channel description. Call aclvencCreateChannelDesc to create data of the aclvencChannelDesc type as a channel description and then call the aclvencSetChannelDesc series to set the channel description. |
Returns
0 on success; else, failure. For details, see aclError.