sys_ctl_epoll

Applicable Products

Product

Supported (√/x)

Ascend 950PR&950DT products

√

Atlas A3 products

√

Atlas A2 products

√

Atlas training products

x

Atlas inference products

√

Atlas 200I/500 A2 inference products

√

Description

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)
    

Parameters

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 VENC use cases, call acl.himpi.venc_get_fd. To obtain a file descriptor in VDEC use cases, 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 Values

Return Value

Description

ret

Int, error code.

0: success

Non-zero: failure. For details, see Common Return Codes.

Constraints

Reference

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

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