hi_mpi_vi_get_pipe_frame

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

Function 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 the hi_mpi_vi_set_pipe_frame_dump_attr API to enable dump and set the depth. Otherwise, no temporary memory space is reserved internally. As a result, image data cannot be obtained.
  • Virtual pipes are not supported.

See Also

For details about the API call sequence, see Video Data Obtaining.