Function: vdec_set_channel_desc_thread_id
C Prototype |
aclError aclvdecSetChannelDescThreadId(aclvdecChannelDesc *channelDesc, uint64_t threadId) |
|---|---|
Python Function |
ret = acl.media.vdec_set_channel_desc_thread_id(vdec_channel_desc, thread_id) |
Function Usage |
Sets the decoding channel description attribute: callback thread ID. |
Input Description |
vdec_channel_desc: int, pointer address of the description of a video decoding channel. Call acl.media.vdec_create_channel_desc to create data of the aclvdecChannelDesc type in advance. thread_id: int, callback thread ID. NOTE:
It is not allowed to pass the same thread ID for subscribing to VDEC callback functions on different devices in the same process. On a single device, the same thread ID can be specified for multiple VDEC channels. Compared with the scenario where each VDEC channel is processed by a separate thread, VDEC is less performant when multiple VDEC channels are processed in serial in a single thread. |
Return Value |
ret: int, error code.
|