hi_mpi_vi_get_pipe_frame

Applicability

Product

Supported

Atlas A3 training products / Atlas A3 inference products

x

Atlas A2 training products / Atlas A2 inference products

x

Atlas 200I/500 A2 inference products

Atlas inference products

x

Atlas training products

x

Description

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.

See Also

For the API call sequence, see Video Data Obtaining.