hi_mpi_sys_ctl_epoll

The Atlas 200/300/500 Inference Product does not support this API.

The Atlas Training Series Product does not support this API.

Description

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

Restrictions

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