Creates a video decoding channel, which is reusable. After being destroyed, the channel is no longer available. This API is synchronous.
In the implementation of VDEC, aclrtCreateStream and aclrtSubscribeReport do not need to be called separately. Note that aclrtCreateStream and aclrtSubscribeReport have restrictions (particularly, on the number of streams and the number of threads that handle the callback functions in the streams) and these restrictions must be met.
aclError aclvdecCreateChannel(aclvdecChannelDesc *channelDesc)
Parameter |
Input/Output |
Description |
|---|---|---|
channelDesc |
Input/Output |
Pointer to the channel description. Call aclvdecCreateChannelDesc to create data of the aclvdecChannelDesc type as a channel description and then call the aclvdecSetChannelDesc series to set the channel description in advance. |
0 on success; else, failure.
For details about the API call sequence and example, see Media Data Processing V1.