sys_ctl_epoll

Applicability

Product

Supported (√/x)

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas training products

x

Atlas inference products

Atlas 200I/500 A2 inference products

Function Usage

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

Prototype

  • C Prototype
    1
    hi_s32 hi_mpi_sys_ctl_epoll(hi_s32 epoll_fd, hi_s32 operation, hi_s32 fd, hi_dvpp_epoll_event *event);
    
  • Python Function
    1
    ret = acl.himpi.sys_ctl_epoll(epoll_fd, operation, fd, event)
    

Parameter Description

Parameter

Description

epoll_fd

Int, pointer address of the epoll instance handle. The handle 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 Description

Return Value

Description

ret

Int, error code.

0: success.

Other values: failures. For details, see Common Return Codes.

Restrictions

Reference

For details about the API call sequence and example, see JPEGE and VENC.

For details about the API call sequence and example, see JPEGE.