sys_ctl_epoll
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
x |
|
|
√ |
|
|
√ |
Description
Adds, deletes, or modifies the corresponding media data processing channel for the media data processing epoll instance.
Prototype
- C Prototype
1hi_s32 hi_mpi_sys_ctl_epoll(hi_s32 epoll_fd, hi_s32 operation, hi_s32 fd, hi_dvpp_epoll_event *event);
- Python Function
1ret = acl.himpi.sys_ctl_epoll(epoll_fd, operation, fd, event)
Parameters
|
Parameter |
Description |
|---|---|
|
epoll_fd |
Int, pointer address of the epoll file descriptor. The file descriptor must be created in advance by calling acl.himpi.sys_create_epoll. |
|
operation |
Int, operation type (addition, deletion, or modification). For details, see hi_dvpp_epoll_ctl_op. |
|
fd |
Int, file descriptor of the media data processing channel. To obtain a file descriptor in the VENC scenario, call acl.himpi.venc_get_fd. To obtain a file descriptor in the VDEC scenario, call acl.himpi.vdec_get_fd. |
|
event |
Dict, epoll event information structure. This parameter describes the event type of the corresponding media data processing channel and the associated user data. This parameter is invalid when a deletion operation is performed. For details, see hi_dvpp_epoll_event. |
Return Value
|
Return Value |
Description |
|---|---|
|
ret |
Int, error code. 0 indicates success. Other values indicate failures. For details, see Common Return Codes. |
Restrictions
- acl.himpi.sys_create_epoll, acl.himpi.sys_ctl_epoll, acl.himpi.sys_wait_epoll, and acl.himpi.sys_close_epoll must be used together to operate the input and output data of the media data processing channel by using the epoll programming model.
- The VPC function does not support this API.