Function: vdec_set_channel_desc_thread_id
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Sets the decoding channel description attribute: callback thread ID.
Prototype
- C Prototype
1aclError aclvdecSetChannelDescThreadId(aclvdecChannelDesc *channelDesc, uint64_t threadId)
- Python Function
1ret = acl.media.vdec_set_channel_desc_thread_id(vdec_channel_desc, thread_id)
Parameter Description
Parameter |
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 Description
Return Value |
Description |
|---|---|
ret |
Int, error code: 0 on success; else, failure. |