hi_mpi_sys_ctl_epoll

Description

Adds, deletes, or modifies the corresponding media data processing channel for the media data processing epoll instance.

The Ascend 310 AI Processor does not support this API in the current version.

The Ascend 910 AI Processor does not support this API in the current version.

Restrictions

hi_mpi_sys_create_epoll, hi_mpi_sys_ctl_epoll, hi_mpi_sys_wait_epoll, and hi_mpi_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.

Prototype

hi_s32 hi_mpi_sys_ctl_epoll(hi_s32 epoll_fd, hi_s32 operation, hi_s32 fd, hi_dvpp_epoll_event *event)

Parameters

Parameter

Input/Output

Description

epoll_fd

Input

File descriptor of an epoll instance. Ensure that the file descriptor has been created by using hi_mpi_sys_create_epoll.

operation

Input

Operation type (addition, deletion, or modification). For details, see hi_dvpp_epoll_ctl_op.

fd

Input

File descriptor of the media data processing channel. To obtain a file descriptor in the VENC scenario, call hi_mpi_venc_get_fd. To obtain a file descriptor in the VDEC scenario, call hi_mpi_vdec_get_fd.

event

Input

Pointer to the epoll event information.

This parameter describes the event type of the corresponding media data processing channel and the associated user data. This parameter is unused in the deletion operation and can be set to NULL.

Returns

See Also

For the API call sequence, see JPEGE and VENC.