aclvencCreateChannel
The
Description
Creates a video encoding 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.
- 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 freed only after the aclvencDestroyChannel call.
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 in advance. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.