hi_mpi_vi_get_pipe_frame

Applicable Products

Product

Supported

Ascend 950PR / Ascend 950DT

☓

Atlas A3 training products / Atlas A3 inference products

☓

Atlas A2 training products / Atlas A2 inference products

☓

Atlas 200I/500 A2 inference products

√

Atlas inference products

☓

Atlas training products

☓

Function

Obtains the data of a physical VI pipe.

Prototype

hi_s32 hi_mpi_vi_get_pipe_frame(hi_vi_pipe vi_pipe, hi_video_frame_info *frame_info, hi_s32 milli_sec)

Parameters

Parameter

Input/Output

Description

vi_pipe

Input

Physical pipe ID.

Value range: [0, 4)

frame_info

Output

Pointer to the VI pipe data.

milli_sec

Input

Timeout parameter.
  • -1: blocking mode
  • 0: non-blocking mode
  • > 0: specific timeout interval, in ms

Returns

Restrictions

  • Call hi_mpi_vi_set_pipe_frame_dump_attr to enable the dump function and set the depth. Otherwise, no temporary buffer space is reserved internally. As a result, no image data can be obtained.
  • Virtual pipes are not supported.

Reference

For the API call sequence, see Video Data Obtaining.