hi_mpi_vi_get_pipe_frame

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

The Atlas Training Series Product does not support this API.

Description

Obtains the data of a physical VI pipe.

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.

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